Skip to content
Back to the feed
0:000:31
Rank#81

Post by jhey ʕ•ᴥ•ʔ

Jʔ

jhey ʕ•ᴥ•ʔ

@jh3yy

Open on X

Future CSS Tip! 🔮 Scroll-linked animation powered by CSS 🤯 header { view-timeline-name: --head; } .avatar{ animation: size; animation-timeline: --head; animation-time-range: exit 0% 50%; } @ keyframes size {to{scale: 0.3;}} See the changes? 🧐 Demo link/info below! 👇

Why it is here

A header avatar that shrinks as you scroll, driven by CSS view timelines with no JavaScript.

Likes
1,6681.7K
Replies
19
All-time rank
#81
Week
W372022
Went viral
Posted on X
Web#css#scroll-driven#animation

The digest

Get posts like this in your inbox every morning.

Get Pro
See the category
Post by Andrew Prifer (is hiring): Dear frontend devs and UI designers. I bring you Liquid DOM, a complete and faithful implementation of Liquid Glass on t
0:34
AH

Andrew Prifer (is hiring)

@AndrewPriferWeb

Likes:8.2K
Post by Aiden Bai: Introducing React Scan:

A drop in script to scan your React app for slow performance and renders

Try it now - it's ope
0:09
AB

Aiden Bai

@aidenybaiWeb

Likes:5.5K
Post by jhey ʕ•ᴥ•ʔ: CSS Tip! 🤙

You can create this magnetic :hover effect with CSS anchor positioning, :has, and zero JS 🔥

article { anc
0:26
Jʔ

jhey ʕ•ᴥ•ʔ

@jh3yyInteraction

Likes:4.8K
Post by jhey ʕ•ᴥ•ʔ: View Transitions with CSS linear() to create a light flicker effect 💡
0:35
Jʔ

jhey ʕ•ᴥ•ʔ

@jh3yyWeb

Likes:4.1K