Loading video...

Video Failed to Load

Go Home

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 👇

79,932 views • 1 year ago •via X (Twitter)

10 Comments

jhey ▲🐻🎈's profile picture
jhey ▲🐻🎈1 year ago

It's one DOM update and some CSS If View Transitions aren't supported, jus' make the DOM update without them 🤙 Here's the @CodePen 🚀

JEM's profile picture
JEM1 year ago

took me forever to find, something with the initial theme it seems once I click it has the correct theme colors for the button

Diligentic Infotech Pvt. Ltd.'s profile picture
Diligentic Infotech Pvt. Ltd.1 year ago

Love how View Transitions add that seamless touch to theme-switching! 🔥 Definitely a major boost for improving user experience. CSS is evolving in amazing ways!

Lars Ejaas 👨‍💻𝕏's profile picture
Lars Ejaas 👨‍💻𝕏1 year ago

Come on Firefox you can do this! 🫶 You do not want to be the only browser without View Transitions!

Agora's profile picture
Agora1 year ago

👀 Wow, this looks great! We're excited to see how developers use this in web apps.

Alex Rothuis's profile picture
Alex Rothuis1 year ago

This looks amazing

Aditya Chaudhary's profile picture
Aditya Chaudhary1 year ago

Looks so cool!

Naif Alotaibi's profile picture
Naif Alotaibi1 year ago

Beautiful work

Gurkaran Singh's profile picture
Gurkaran Singh1 year ago

This guy is abusing GSAP, making it irrelevant 😂😂

Will's profile picture
Will1 year ago

Beautiful

Related Videos