Video wird geladen...
Video konnte nicht geladen werden
View Transition powered drag n' drop! just drag events then swappin DOM, #CSS view transitions doin all the animation work (which it's GREAT AT) 🤯 that animated emoji don't miss a beat try it!
351,668 Aufrufe • vor 3 Jahren •via X (Twitter)
9 Kommentare

For folks reading along, here's how to keep other animations running during a view transition

Incredibly cool! View Transitions is the gift that keeps on giving

@maric_astro

Awesome! But I find it confusing to drop the item ON another item. It would be more clear if I dropped the item _between_ two items. Is that possible?

def possible!

ok I wasn't paying attention to view transitions before. I am now.

I love how you name things so much; it's crystal clear the intent is NOT to ship, and no docs needed! style="view-transition-name: yes-this-keeps-animating-during-morph"> 💯

Is there any article explaining how you use imports and CSS layers this way? Didn't even know it was possible before today. Is there a bundler equivalent of doing the same while importing CSS from JS files (I mean, applying a layer to the imported file)

Miriams for you covered with a full overview For bundlers, Sass has offered a feature very similar for a while, Stitches offers it for css-in-js and there's postcss and lightning CSS support as well
