kevinpowell.co/courses?... 👈 Interested in levelling up your CSS game? I’ve got courses!
Parallax effects can be cool, but I’m always told the CSS-only solutions aren’t “true” parallax. Well, thanks to scroll-timeline: scroll(), we can now create true parallax effects without one line of JS and have complete control over the speed of each layer.
🔗 Links
✅ The original site: moco.supercell.com/en/
✅ The polyfill: github.com/flackr/scroll-time...
✅ Web Dev Simplified’s video: • This Simple Trick Make...
✅ The code from this video: github.com/kevin-powell/css-p...
⌚ Timestamps
00:00 - Introduction
01:10 - How we need to set up our HTML
02:45 - Stacking everything with CSS
04:45 - Creating the animation for the parallax
05:44 - Applying the animation to when the user scrolls with animation-timeline scroll()
08:00 - Changing the “speed” of each element
12:15 - Making sure the elements don’t go in front of other content
13:40 - Overflow hidden doesn’t work
15:08 - Browser support and a polyfill
#css
--
Come hang out with other dev's in my Discord Community
💬 / discord
Keep up to date with everything I'm up to
✉ www.kevinpowell.co/newsletter
Come hang out with me live every Monday on Twitch!
📺 / kevinpowellcss
---
Help support my channel
👨🎓 Get a course: www.kevinpowell.co/courses
👕 Buy a shirt: teespring.com/stores/making-t...
💖 Support me on Patreon: / kevinpowell
---
My editor: VS Code - code.visualstudio.com/
---
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my RU-vid channel, make sure to follow me on Instagram and Twitter.
Twitter: / kevinjpowell
Codepen: codepen.io/kevinpowell/
Github: github.com/kevin-powell
---
And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!
17 май 2024