Skip to content
Back to the feed
0:000:38
Rank#102

Post by jhey ʕ•ᴥ•ʔ

Jʔ

jhey ʕ•ᴥ•ʔ

@jh3yy

Open on X

Use CSS View Transitions for progressively enhanced theme-switching 😎 ::view-transition-new(root) { animation: reveal; clip-path: inset(0 0 0 0); } keyframes reveal {0% { clip-path: inset(100% 0 0 0);}} Can even scrub/debug with DevTools 👇

Why it is here

A clip-path reveal for switching themes, built as a progressive enhancement with CSS view transitions.

Likes
1,2031.2K
Replies
25
All-time rank
#102
Week
W382024
Went viral
Posted on X
Web#css#view-transitions#dark-mode

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