View Transitions: Use the new attr() or match-element for the view-transition-name? (opens in new tab)
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 during the Q&A, Cyd Stumpel wondered if he couldn’t just use match-element there.The short answer to that question is yes. The longer answer is … It Depends™
Read the original article