Pure CSS scroll animation

Опубликовано: 12 Октябрь 2024
на канале: Ana Tudor
1,173
like

Live demo https://codepen.io/thebabydino/pen/Yz...

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: 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/Hyperplexed/pen/Ba...

---

Chapters
00:00 Problem introduction
00:28 Starting code
00:45 Create scrollbar
01:03 Fix text in the middle of viewport
02:04 Add basic background
02:20 Restrict background to text
02:54 Make text see-through
03:03 Fix cursive text edges
03:41 Add background gradient
04:17 The meaning of a percentage
04:55 Polish the gradient
05:25 Animate separator line position
06:12 The on-scroll magic! 🧚🪄✨
06:46 Support talk
08:43 Graceful degradation
09:35 Dynamic support info in pure CSS
14:10 Custom scrollbars
15:35 That's all, folks! 🐷

#css #scroll #cssAnimation