Loading video...

Video Failed to Load

Go Home

Every animation in this video was done with document.startViewTransition() and view-transition-name ONLY

21,365 views • 1 year ago •via X (Twitter)

7 Comments

jhey ▲🐻🎈's profile picture
jhey ▲🐻🎈1 year ago

yeah - playing cards was one of the first View Transitions demos I messed about with (before it got the rename) lot of fun - in earlier versions it could somewhat handle 3D transforms too

Manu's profile picture
Manu1 year ago

This API is so underrated. I have used it to animate page transitions and it was extremely easy to make it work. I think most people overlook this as animations used to be more complicated to set up, and we are still blocked by that trauma.

Scott Tolinski - Syntax.fm's profile picture
Scott Tolinski - Syntax.fm1 year ago

@manuaveragedev So true.

Mateusz Derks's profile picture
Mateusz Derks1 year ago

Nice! I used view transitions to animate card movement as well here: The only thing that stopped me for more than a minute was addressing a few issues with z-index, other than that it was a breeze.

Christian Genco's profile picture
Christian Genco1 year ago

oh hey `startViewTransition` works on everything except Firefox—I gotta start using this.

Sean Wilson's profile picture
Sean Wilson1 year ago

I think browser support is the main blocker? Looks like View Transitions is supported in Chrome and the latest Safari? Not finding anything about when it's coming to Firefox. Found a polyfill for it but it's 300K.

Beto Melean's profile picture
Beto Melean1 year ago

Could this work with Rive assets?

Related Videos