Re: [csswg-drafts] [web-animations-2] Iteration delay (#4459)

@birtles What if `animation-iteration-delay` accepted two `<time>` values, e.g. `animation-iteration-delay: 0s 2s`.

The first value would be a before delay, the second value a after delay. The before delay would fill like `backwards`, the after delay like `forwards`.

If authors want to fill the `backwards`, they’d do something like `animation-iteration-delay: 2s 0s`. If they want to fill `forwards`, they’d do `animation-iteration-delay: 0s 2s`. The defined values only apply in between iterations, not when the animation starts.

The property could be a shorthand for `animation-iteration-delay-before` and `animation-iteration-delay-after` _(names to be bikeshed)_.

The iteration count increases in between the two values: after `animation-iteration-delay-after` has passed and before `animation-iteration-delay-before` starts.

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


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

Received on Monday, 17 July 2023 23:06:42 UTC