Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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 Aufrufe • vor 1 Jahr •via X (Twitter)

10 Kommentare

Profilbild von jhey ▲🐻🎈
jhey ▲🐻🎈vor 1 Jahr

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 🚀

Profilbild von JEM
JEMvor 1 Jahr

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

Profilbild von Diligentic Infotech Pvt. Ltd.
Diligentic Infotech Pvt. Ltd.vor 1 Jahr

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!

Profilbild von Lars Ejaas 👨‍💻𝕏
Lars Ejaas 👨‍💻𝕏vor 1 Jahr

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

Profilbild von Agora
Agoravor 1 Jahr

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

Profilbild von Alex Rothuis
Alex Rothuisvor 1 Jahr

This looks amazing

Profilbild von Aditya Chaudhary
Aditya Chaudharyvor 1 Jahr

Looks so cool!

Profilbild von Naif Alotaibi
Naif Alotaibivor 1 Jahr

Beautiful work

Profilbild von Gurkaran Singh
Gurkaran Singhvor 1 Jahr

This guy is abusing GSAP, making it irrelevant 😂😂

Profilbild von Will
Willvor 1 Jahr

Beautiful

Ähnliche Videos