Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

10 Kommentare

Profilbild von Maxi Ferreira
Maxi Ferreiravor 3 Jahren

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.

Profilbild von Maxi Ferreira
Maxi Ferreiravor 3 Jahren

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

Profilbild von Jake Archibald
Jake Archibaldvor 3 Jahren

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

Profilbild von Joe Previte
Joe Previtevor 3 Jahren

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

Profilbild von Maxi Ferreira
Maxi Ferreiravor 3 Jahren

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

Profilbild von Jake Ruesink
Jake Ruesinkvor 3 Jahren

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?

Profilbild von Steren
Sterenvor 3 Jahren

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.

Profilbild von Una 🇺🇦
Una 🇺🇦vor 3 Jahren

Nice demo!

Profilbild von Maxi Ferreira
Maxi Ferreiravor 3 Jahren

Thanks, Una! 🙌🏽

Profilbild von Ben Holmes
Ben Holmesvor 3 Jahren

Your view transition demos keep getting cooler 😮

Ähnliche Videos