Re-imagine the web with Scroll-Driven Animations

Video from Chrome’s 2024 EOY campaign, highlighting Scroll-Driven Animations. I made sure the code snippets and animations that you see where Technically Correct™.


This content originally appeared on Bram.us and was authored by Bramus!

Here’s a video we – Chrome – launched as part of our EOY campaign, highlighting Scroll-Driven Animations.

Create fluid, responsive scroll-driven animations that give your users engaging, app-like web experiences—with only a few lines of CSS, JavaScript, or both.

I really like how Scroll-Driven Animations – a feature I have been working on as part of my job as Chrome DevRel – is getting its moment in the spotlight. I think the video turned out great, showing what can be achieved with Scroll-Driven Animations.

To learn how to create these engaging animations yourself, there’s only 1 place to be: https://scroll-driven-animations.style/

~

To address some of the remarks I see popping up in the comments:

“Two emptys divs. Hahahaha.”
You really only need two elements in your markup here: a scroller + an element that you animate. They can even be one-and-the-same element … or you could use three if you want to track an element in a scroller while animating another element at the far end of your DOM tree. Whatever floats your boat.
“But you need JavaScript to achieve the effects shown”
Yes, while you can get most animations going with CSS or WAAPI alone, sometimes you need to sprinkle a bit of JS on top of your CSS to achieve Scroll-Driven Video or Scroll-Driven 3D objects.
“Scroll animations are the worst UX!”
Developers have been building these effects for quite some time, so functionally there is nothing new here. If you don’t like them you should set your prefers-reduced-motion preference to reduce by changing your OS User Preferences. Websites that were built properly will give you no or alternative animations when that is the case.


This content originally appeared on Bram.us and was authored by Bramus!


Print Share Comment Cite Upload Translate Updates
APA

Bramus! | Sciencx (2024-12-05T13:02:18+00:00) Re-imagine the web with Scroll-Driven Animations. Retrieved from https://www.scien.cx/2024/12/05/re-imagine-the-web-with-scroll-driven-animations/

MLA
" » Re-imagine the web with Scroll-Driven Animations." Bramus! | Sciencx - Thursday December 5, 2024, https://www.scien.cx/2024/12/05/re-imagine-the-web-with-scroll-driven-animations/
HARVARD
Bramus! | Sciencx Thursday December 5, 2024 » Re-imagine the web with Scroll-Driven Animations., viewed ,<https://www.scien.cx/2024/12/05/re-imagine-the-web-with-scroll-driven-animations/>
VANCOUVER
Bramus! | Sciencx - » Re-imagine the web with Scroll-Driven Animations. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/12/05/re-imagine-the-web-with-scroll-driven-animations/
CHICAGO
" » Re-imagine the web with Scroll-Driven Animations." Bramus! | Sciencx - Accessed . https://www.scien.cx/2024/12/05/re-imagine-the-web-with-scroll-driven-animations/
IEEE
" » Re-imagine the web with Scroll-Driven Animations." Bramus! | Sciencx [Online]. Available: https://www.scien.cx/2024/12/05/re-imagine-the-web-with-scroll-driven-animations/. [Accessed: ]
rf:citation
» Re-imagine the web with Scroll-Driven Animations | Bramus! | Sciencx | https://www.scien.cx/2024/12/05/re-imagine-the-web-with-scroll-driven-animations/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.