matia ๐Ÿ‡ญ๐Ÿ‡ท @joyofcode.xyz ยท Apr 19

You can use the CSS attr() function to read attributes and specify the type which is great for giving elements view transition names ๐Ÿ”ฅ The only downside is that besides Chrome browser support is not great at the moment

20 likes 2 replies

?

Replies

Jake Archibald ยท Apr 19

Fwiw, this is behind a flag in Firefox, so it's not too far away.

Bag of Tricks for View Transitions ยท Apr 19

For broader browser compatibility, you might find this pattern helpful: