Re: [csswg-drafts] [css-view-transitions-2] Optionally capture some properties (e.g. opacity/border) as style instead of snapshot (#10585)

> Perhaps `view-transition-style: crossfade | morph` ?

The conversation here uses “capture mode“ as a term a lot, so maybe `view-transition-capture-mode` seems better?

> * Crossfade between the old and new element snapshots, like today (`crossfade`?)

`crossfade` as a value feels weird here because authors can override the animation to something entirely different. IUC this is the current behavior where you get a flattened surface, so maybe `flat` as a value is better here?

> * Crossfade the contents and animate the box decorations individually (`morph`?)



> * Display the new content only and morph only the box decorations (`transpose`?)

This can already be controlled by authors, no?

```css
::view-transition-old(x) { display: none; }
::view-transition-new(x) { animation-name: none; }
```

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


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

Received on Tuesday, 20 August 2024 09:18:21 UTC