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

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

🫧 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™

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论