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

Learn to create a responsive and visually appealing animated accordion in this comprehensive tutorial video. Explore the process of building an accordion from scratch, starting with proper HTML structure and accessibility considerations. Dive into styling with CSS, including panel layouts, icon design, and typography enhancements. Implement JavaScript for smooth interactions and animations, while ensuring responsiveness across devices. Master techniques for improving user experience, such as keyboard navigation and reduced motion preferences. By the end of this 1-hour 18-minute tutorial, gain the skills to craft a polished, functional accordion that adds a delightful touch to your web projects.

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.