正在加载视频...

视频加载失败

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 次观看 • 1 年前 •via X (Twitter)

10 条评论

jhey ▲🐻🎈 的头像
jhey ▲🐻🎈1 年前

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 的头像
JEM1 年前

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. 的头像
Diligentic Infotech Pvt. Ltd.1 年前

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 👨‍💻𝕏 的头像
Lars Ejaas 👨‍💻𝕏1 年前

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

Agora 的头像
Agora1 年前

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

Alex Rothuis 的头像
Alex Rothuis1 年前

This looks amazing

Aditya Chaudhary 的头像
Aditya Chaudhary1 年前

Looks so cool!

Naif Alotaibi 的头像
Naif Alotaibi1 年前

Beautiful work

Gurkaran Singh 的头像
Gurkaran Singh1 年前

This guy is abusing GSAP, making it irrelevant 😂😂

Will 的头像
Will1 年前

Beautiful

相关视频