bramus, to random
@bramus@front-end.social avatar

⭐️ Scroll-Driven Animations with CSS (2024.05.30 @ WebExpo)

Slides of the talk “Scroll-Driven Animations with CSS” I gave at @webexpo today.

https://www.bram.us/2024/05/30/scroll-driven-animations-with-css-webexpo/

pablolarah, to CSS
@pablolarah@mastodon.social avatar
bramus, to random
@bramus@front-end.social avatar

Almost ready for tonight's @fronteers (BE) meetup …

Jbasoo, to CSS
@Jbasoo@mastodon.social avatar

I got carried away last night after reading @bramus post on scroll direction detection using #CSS #scrollDrivenAnimations. It turns out you can control #pixelArt sprites in 8 directions! With zero #JS!

https://jamesbasoo.com/blog/scroll-driven-pixel-art-sprite/

Retro style pixel art character walking in various directions

cheeaun, to webdev
@cheeaun@mastodon.social avatar

😳 I think there's a moment in when you cross over between building a cool web app, getting inspired by @bramus 's scroll-driven animation demos and creating trippy-looking UI's.

(local dev, not on dev site)

Hashtag page on Phanpy, showing media posts tagged as , showing images that animate their intrinsic alignment (object-position in CSS) while scrolling down the list.

cheeaun,
@cheeaun@mastodon.social avatar
cheeaun,
@cheeaun@mastodon.social avatar

Subtle that no one should notice 🫣

Phanpy's profile page for @cheeaun. The navigation header UI doesn't show any heading, but will fade in when scrolled down. It'll show "Chee Aun 🤔 @cheeaun"
Phanpy's profile sheet UI. When scrolled down, the profile banner image will fade out and get blurred, the avatar will shrink to a smaller size, the header will show a bottom border with drop shadow.

bramus, to CSS
@bramus@front-end.social avatar

New blogpost: “Run a Scroll-Driven Animation only once”

Scroll-Driven Animations are controlled by scroll: as you scroll up and down, the animation will scrub forwards and back, in direct response. But what if you want a scroll-driven animation to stay on its endframe once it was entirely played? Let this little piece of JavaScript help you out …

🔗 https://bram.us/2023/10/05/run-a-scroll-driven-animation-only-once/

bramus, to CSS
@bramus@front-end.social avatar

Solved by CSS Scroll-Driven Animations: detect if an element can scroll or not.

“Leverage Scroll-Driven Animations + a Space Toggle or State Query to selectively style an element based on it being scrollable or not.”

🔗 https://brm.us/css-scroll-detection

🏷️

bramus, to random
@bramus@front-end.social avatar

Casually dropping this here before I start my weekend … 👋

https://www.youtube.com/watch?v=UszGZofQrpw

inautilo, to CSS
@inautilo@mastodon.social avatar


CSS-only scroll animations · “It’s absolutely amazing what CSS is capable of nowadays.” https://ilo.im/13zsup


bramus, to CSS
@bramus@front-end.social avatar

In this post I share how you can (ab)use Scroll-Driven Animations to fake a :snapped selector – a fictitious selector that matches elements that are currently snapped within their scroll-snapping enabled ancestor scroller.

CSS IS FUN, YO! 🤩

🔗 https://brm.us/snapped

🏷️

Recording of a page that styles elements differently when they have snapped. It is built with CSS, (ab)using Scroll-Driven Animations.

bramus, to webdev
@bramus@front-end.social avatar
bramus, to webdev
@bramus@front-end.social avatar

Introducing scroll-driven-animations.style, a website I built to support the launch of Scroll-Driven Animations in Chrome 115.

🔗 https://bram.us/2023/06/13/introducing-scroll-driven-animations-style/

🏷️

bramus, to webdev
@bramus@front-end.social avatar

Y'all are ready for this? I almost am!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines