正在加载视频...

视频加载失败

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

21,365 次观看 • 1 年前 •via X (Twitter)

7 条评论

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

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

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 的头像
Scott Tolinski - Syntax.fm1 年前

@manuaveragedev So true.

Mateusz Derks 的头像
Mateusz Derks1 年前

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

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

Sean Wilson 的头像
Sean Wilson1 年前

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

Could this work with Rive assets?

相关视频