View Transitions: Use the new attr() or match-element for the view-transition-name?

🫧 Open on Bubbles At CSS Day, “YouTube guy” Kevin Powell showed a lot of demos that relied on the advanced attr() function. In one of the examples he used attr() to set view-transition-name values — a technique I covered in my article on advanced attr() function.But then Cyd Stumpel asked during the Q&A if he couldn’t just use match-element there.The short answer that question is yes. The longer answer is … It Depends™
评论
?
参与讨论