Re: [csswg-drafts] [css-view-transitions-2] Ignore offscreen elements from participating in transitions (#8282)

> this feature is more about allowing the author to use this for art-direction

As an author, I want to +💯 this.

I don't think heuristics work here. By the time the browser knows the full animation for a group, it's already captured the old view. This feature is about being able to exclude the old view. Also, even if the animation won't intersect with the viewport at the start of the animation, there's no guarantee that will remain true - the DOM can change.

As an author, sometimes I'm happy with an element animating from outside the viewport to outside the viewport. Sometimes I'm happy for it to animate from its original position, outside the viewport, to its new position inside the viewport, or vice-versa. But sometimes I'm not. It depends on the thing being animated.

If that design choice is taken away from me, the feature is useless. This feature is about design choice.

-- 
GitHub Notification of comment by jakearchibald
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8282#issuecomment-2046985105 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 10 April 2024 09:14:30 UTC