Re: [csswg-drafts] [css-animations-2] Add animation-trigger for triggering animations when an element is in a timeline's range (#8942)

> Demo using it: https://flackr.github.io/web-demos/scroll-triggered/

Nice!

Looking at the code, I see this:

```css
animation-trigger: view() alternate contain 0% contain 100%;
```

I assume this would also work, because `contain` expands to `contain 0% contain 100%`:

```css
animation-trigger: view() alternate contain;
```

Same with this below, which expands to `entry 100% normal`:

```css
animation-trigger: view() alternate entry 100%;
```

Am I correct in this?

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


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

Received on Friday, 15 September 2023 15:45:09 UTC