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

YouTube

Recreating YouTube’s Tab Animation

Kevin Powell via YouTube

Overview

Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
Learn how to recreate YouTube's tab animation in this 31-minute tutorial video by Kevin Powell. Explore techniques for creating an underline effect using transform and scale properties for better performance. Follow along as the instructor guides you through setting up CSS, implementing JavaScript to move the underline on tab clicks, animating underline position, matching underline width to tab width, and creating a stretching effect during transitions. Gain insights into semantic CSS and tab functionality while improving your web development skills.

Syllabus

- Introduction
- What we are starting with
- Setting up the CSS
- Using JS to move the underline when we click on a tab
- Animating the underline position
- Getting the underline to match the width of the tab
- Making the underline stretch as it moves to a new position

Taught by

Kevin Powell

Reviews

Start your review of Recreating YouTube’s Tab Animation

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.