Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-animations][scroll-animations-1] using animation-range in animation shorthand instead of duration and delay #7944

Closed
ydaniv opened this issue Oct 23, 2022 · 0 comments
Labels

Comments

@ydaniv
Copy link
Contributor

ydaniv commented Oct 23, 2022

Since animation-duration has no meaning for scroll-linked animations, as noted here:

A ScrollTimeline’s duration is 100%.

We could say that <time>-related values have no meaning in animation shorthand values.

Instead, those require an animation-range value, also discussed in #7575.

Currently, animation-range is defined as an alias of animation-delay here: https://drafts.csswg.org/scroll-animations-1/#named-range-animation-declaration.

Perhaps we could define animation to either include <time> values for time-based animations, and have that resolve to animation-delay - which will in turn can be defined as only <time>#; or include only a <timeline-range-name># - and then resolve to animation-range?
Then we could also make these definitions mutually exclusive and also remove the confusion (as discussed in #7901)?
FYI @fantasai @flackr

@fantasai fantasai added the scroll-animations-1 Current Work label Nov 16, 2022
@ydaniv ydaniv closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants