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

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

На главную

A really cool feature of the View Transitions API (available now in stable Chrome!) is that videos and animations on the new view continue to play smoothly while transitioning. With a bit of extra JavaScript, you can even do this with elements shared across different routes ✨

351,241 просмотров • 3 лет назад •via X (Twitter)

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

Фото профиля Maxi Ferreira
Maxi Ferreira3 лет назад

Like previous demos, this is an @astrodotbuild site using the Navigation API as a client-side router. On non-Chrome browsers it works as a regular MPA. Demo and source 👉🏽 Big thanks to @jaffathecake for the tip on how to do the smooth video transition.

Фото профиля Maxi Ferreira
Maxi Ferreira3 лет назад

Full credits for the UI go to designer Ehsan Rahimi 🙏 Their wonderful Dribbble shot was what inspired this demo

Фото профиля Jake Archibald
Jake Archibald3 лет назад

For folks following along, here's how to do it:

Фото профиля Joe Previte
Joe Previte3 лет назад

holy cow, this is so smooth! is this repo open source?

Фото профиля Maxi Ferreira
Maxi Ferreira3 лет назад

Yes! You can play with the demo here as well (need to use latest Chrome)

Фото профиля Jake Ruesink
Jake Ruesink3 лет назад

Would be really cool to see a demo video of how this API works. @wesbos or @stolinski maybe? Or a good segment for @syntaxfm at least. Who else does good demos that should see this?

Фото профиля Steren
Steren3 лет назад

Wow, I thought the View Transition API was allowing to manipulate a *static screenshot* of the old and new view. But it's actually not static? Game changer.

Фото профиля Una 🇺🇦
Una 🇺🇦3 лет назад

Nice demo!

Фото профиля Maxi Ferreira
Maxi Ferreira3 лет назад

Thanks, Una! 🙌🏽

Фото профиля Ben Holmes
Ben Holmes3 лет назад

Your view transition demos keep getting cooler 😮

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