Live demo https://codepen.io/thebabydino/pen/QW...
If the work I've been putting out since early 2012 has helped you in any way or you just like it, please consider supporting it to help me continue and stay afloat. You can do so in one of the following ways:
you can be a cool cat 😼🎩 and become a patron on Patreon / anatudor
you can make a one time donation via Ko-fi https://ko-fi.com/anatudor
you can make an anonymous weekly donation https://liberapay.com/anatudor/
you can make me happy by getting me a gift off my wishlist
🎁🇺🇸 https://www.amazon.com/hz/wishlist/ls...
🎁🇬🇧 https://www.amazon.co.uk/hz/wishlist/...
you can share this to show the world what can be done with CSS these days
Thank you!
---
Resources:
Scroll-Driven Animations: my previous video • Pure CSS scroll animation
The State of Responsive 3D Shapes: % value for values for various properties https://css-tricks.com/state-responsi...
Scroll-Driven Animations: scroll() https://developer.mozilla.org/en-US/d...
Taming Blend Modes: difference and exclusion https://css-tricks.com/taming-blend-m...
Scroll-Driven Animations: demos & tools https://scroll-driven-animations.style/
Scroll-Driven Animations: talk & demo https://www.bram.us/2023/02/12/scroll...
Scroll-Driven Animations: coming in Chrome https://groups.google.com/a/chromium....
Scroll-Driven Animations: used for diagonal scroll https://codepen.io/thebabydino/pen/zY...
Scroll-Driven Animations: HTTP 203 discussion • Scroll-Linked Animations with ScrollT...
Pure CSS dynamically displayed support info boxes for cutting edge features https://codepen.io/thebabydino/full/q...
Inspiration for this demo https://codepen.io/PointC/pres/ZErvbPR
---
Chapters
00:00 Problem introduction
00:17 Starting code
00:22 Create scrollbar
00:38 Fix text in the middle of viewport
02:22 Prettify text
04:38 Add root pseudo & give it basic styles
05:42 Add root pseudo animation
06:20 The on-scroll magic! 🧚🪄✨
06:46 The inversion magic! 🧚🪄✨
08:13 Apply styles only if supported
08:42 Dynamic support info in pure CSS
10:06 Custom scrollbars
11:29 That's all, folks! 🐷
#css #scroll #blending #cssAnimation