Loading video...
Video Failed to Load
Future CSS Tip! ๐ฎ You can create sweet scroll-driven micro-interactions using CSS scroll-driven animations ๐ .avatar { animation: scale-down; animation-timeline: scroll(); animation-range: var(--header-range); } @ keyframes scale-down { to { scale: 0.3; } } What's happening in this one? ๐ 1. Avatar moves and scales down as the header... show more
685,804 views โข 3 years ago โขvia X (Twitter)
10 Comments

Here's that @CodePen link! ๐ Hop into Chrome 115+ and take it for a spin ๐ค

Did you come up with this? This is mind blowing since Iโm just getting used to parent child relationships. Def gonna try this out!

Yeah, it's a combination of a couple of demos I built last year for speaking at conferences โจ Fun part was filming myself for the image ๐
This looks so cool! I've got a slight issue on Chrome Android where the background image is halfway across the page. Definitely going to be having a play with this!

Ahh โ Thanks for pointing this out Alex ๐ I think I've fixed it ๐ค Needed to set some max-widths, etc. Glad you like it!

I'm out here lookin at your css like

Well done ๐ซก

Thanks Jesse ๐

Nooice ๐ฅ

@artsnux ๐๐
