Загрузка видео...

Не удалось загрузить видео

На главную

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,987 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 10

Фото профиля jhey ▲🐻🎈
jhey ▲🐻🎈2 лет назад

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
JEM2 лет назад

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.2 лет назад

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 👨‍💻𝕏2 лет назад

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

Фото профиля Agora
Agora2 лет назад

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

Фото профиля Alex Rothuis
Alex Rothuis2 лет назад

This looks amazing

Фото профиля Aditya Chaudhary
Aditya Chaudhary2 лет назад

Looks so cool!

Фото профиля Naif Alotaibi
Naif Alotaibi2 лет назад

Beautiful work

Фото профиля Gurkaran Singh
Gurkaran Singh2 лет назад

This guy is abusing GSAP, making it irrelevant 😂😂

Фото профиля Will
Will2 лет назад

Beautiful

Похожие видео