Re: [csswg-drafts] [css-view-transitions-2] Optimize no content change animations (#9406)

> ^ yea, `view-transition-style` could be a good spot to express this. Would the syntax allow combining with both `cross-fade` and `morph`? Maybe the content is the same but the shape of the box changes?

It probably should since you would want to be able to mark either type of transition as optimized.
Maybe through a keyword like ``static``, similar to the ``safe`` keyword for flex alignments.
That'd make ``static crossfade`` and ``static morph``, but I think, since ``crossfade`` is the default it might make sense to also allow ``static`` on its own, as a shorthand for ``static crossfade``.

``view-transition-style: crossfade`` - crossfade transition
``view-transition-style: morph`` - morph transition
``view-transition-style: static`` - optimized crossfade transition
``view-transition-style: static crossfade`` - optimized crossfade transition
``view-transition-style: static morph`` - optimized morph transition

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


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

Received on Thursday, 15 August 2024 12:58:06 UTC