Re: [csswg-drafts] [css-view-transitions-2] Syntax for customizing transitions based on their type (#8960)

> @bramus can you check how this work for the example [here](https://github.com/w3c/csswg-drafts/issues/8960#issuecomment-1688622403)?

Pretty much like example 3, basically.

> The thing is that sometimes you want to use the same transition for many page types. e.g. a main-page transition.

That would be this, without specifying any `to` nor `from`.

```css
@view-transition { … }
```

Alternatively, wildcards would be added, to indicate that `to`/`from` must have a value:

```css
@view-transition (from: * to *) { … }
```

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


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

Received on Thursday, 7 September 2023 18:55:23 UTC