0:000:38
Post by jhey ʕ•ᴥ•ʔ
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