Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Build a Responsive, Animated Accordion That Looks Pretty Good

Kevin Powell via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course demonstrates how to build a responsive animated accordion using HTML, SVG icons, CSS, and JavaScript. It covers panel sizing, overflow, typography, keyboard interactions, reduced-motion preferences, and CSS containment.

Syllabus

- Introduction
- The inspiration for what I’m going to build
- Building things out the right way
- The HTML
- The SVG icons
- The generic CSS stuff
- Setting up the panel styles
- Styling the icons
- Setting up the size of the panels and fixing up the button
- Dealing with the overflowing text
- The JavaScript - adding the interactions
- Adding the animations
- Fixing up the typography and text positioning
- Making the text more readable
- Adding prefers-reduced-motion
- Adding a background to the titles
- Making it responsive
- Improving the keyboard interactions
- Using containment

Taught by

Kevin Powell

Reviews

Start your review of Build a Responsive, Animated Accordion That Looks Pretty Good

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.