正在加载视频...

视频加载失败

I can't stop seeing #CSS View Transitions! here I'm animating new `node.textContent`, letting the browser handle the morph while bringing in custom animations (and stagger) for stage enter and stage exit 🥲 try it

469,499 次观看 • 3 年前 •via X (Twitter)

11 条评论

Adam Argyle 的头像
Adam Argyle3 年前

get a full ramp up from @bramus from @CSSDayConf

Adam Argyle 的头像
Adam Argyle3 年前

get a quick overview from this YouTube short I made

Adam Argyle 的头像
Adam Argyle3 年前

or this YouTube short

Adam Argyle 的头像
Adam Argyle3 年前

or peep some great docs from @jaffathecake

Tucker Massad 的头像
Tucker Massad3 年前

You’d definitely enjoy my take on this animation style

Adam Argyle 的头像
Adam Argyle3 年前

Confirm, I def enjoy this 🙂

Una 🇺🇦 的头像
Una 🇺🇦3 年前

Smooooth 😍

simey 的头像
simey3 年前

Dude that's so nice, I guess you can also do a little js to check if # is lower than previous and apply a CSS class to run an opposite animation? wonder how long it'll be before we can use it. Still waiting for houdini properties and values,

Adam Argyle 的头像
Adam Argyle3 年前

i could def make it go back the other way, fun idea! if you want the animation for every browser, you need to wait, but if you're down to progressively enhance, then you can start today. here's one where i progressively enhance it

Lorenzo 的头像
Lorenzo3 年前

I thought it only worked for navigating to a different pages. What do you mean by morph?

Adam Argyle 的头像
Adam Argyle3 年前

there's 2 types of view transitions! you're referring to the MP (multipage) type, which is still behind a flag in Canary. this is the SPA type, aka the javascript API, which is in Chrome stable. same idea, just a different trigger: - MPA triggered by page nav - SPA by JS 👍🏻

相关视频