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

4 months ago by codeinabox to c/css

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

@programming.dev

login for more options
846
361
86

go to feed...