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

YouTube

True Parallax with CSS-Only - Creating Scroll-Based Animations

Kevin Powell via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to create true parallax effects using CSS-only techniques in this 18-minute video tutorial. Discover how to leverage the scroll-timeline: scroll() property to achieve authentic parallax scrolling without relying on JavaScript. Explore the process of setting up HTML structure, stacking elements with CSS, and creating animations for parallax effects. Master the application of scroll-based animations and learn to control the speed of individual layers. Address common issues such as element positioning and overflow handling. Gain insights into browser support and the use of polyfills to ensure compatibility across different platforms.

Syllabus

- Introduction
- How we need to set up our HTML
- Stacking everything with CSS
- Creating the animation for the parallax
- Applying the animation to when the user scrolls with animation-timeline scroll
- Changing the “speed” of each element
- Making sure the elements don’t go in front of other content
- Overflow hidden doesn’t work
- Browser support and a polyfill

Taught by

Kevin Powell

Reviews

Start your review of True Parallax with CSS-Only - Creating Scroll-Based Animations

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.