-
Notifications
You must be signed in to change notification settings - Fork 708
[scroll-animations-1] animation-range vs animation-duration #8405
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
Comments
I would prefer if all three values are not their initial Using the shorter of |
The nice thing about thinking of animation range in this alternative view is that it is effectively css keywords for specifying the animation start time and end time - whereas the former is a new concept. |
Thinking about this more while working on the iteration count edits, I think the model we should go with is:
|
@fantasai that is my working model as well (I thought it was the model we had already TBH 😄 ) and would be consistent with the proposed resolution of animation-range "winning" if all three are specified. I agree with all of the points. |
The CSS Working Group just discussed
The full IRC log of that discussion<emilio> flackr: when you specify all of animation-range-start/end/duration<emilio> ... it's not possible to satisfy all of these constraints <fantasai> Proposal -> https://github.com//issues/8405#issuecomment-1464810166 <emilio> flackr: where we've arrived is that animation-range is setting the absolute points at which an animation starts and ends and all other constraints are applied inside that range <emilio> ... so your duration could make the animation shorter but a longer one would be clipped to that range <emilio> ... this is my mental model as well <emilio> fantasai: [goes over comment] <flackr> q+ <Rossen_> ack fantasai <Rossen_> ack flackr <emilio> flackr: one point of clarification: for time-based timelines you need the range to start at the point you tell them to play <emilio> fantasai: if you set a negative delay you might end up with a start before the document timeline start <emilio> ... if you have an animation range that could be negative range, but you're not going to see that animation <emilio> flackr: if you specified animation-range-start: 0s that implies the time at which the document loaded <emilio> ... so the auto start range would be the point at which you play the animation <emilio> fantasai: I see, so when we add times to animation-range it makes the model consistent <emilio> YehonatanDaniv: so if duration is shorter than start-end which one takes precedence? <emilio> fantasai: so if it's smaller it might clip the animation, but if the duration is larger the animation ends until the end of the range <emilio> YehonatanDaniv: but if I force iterations to 1... <emilio> fantasai: if you have no delay, you layout the keyframes along the duration, but if the end of the range is before, any frames after get ignored <emilio> YehonatanDaniv: ok <emilio> YehonatanDaniv: so start/end either define my duration if auto or a clipping range <emilio> fantasai: yeah <emilio> PROPOSAL: [fantasai's comment ;)] <emilio> RESOLVED: Accept proposal in the issue |
(I would have interpreted that as the range end shortening the duration, not clipping the animation, so I thought they're different.) |
If
animation-range-start
,animation-range-end
, andanimation-duration
are all set, and duration doesn't exactly match the available range, what do we do?Options proposed so far:
animation-range-end
.animation-duration
.Related question: if
animation-duration
andanimation-range-end
are given but notanimation-range-start
, do we:animation-range-end
, and calculate the used value ofanimation-range-start
accordingly?Fwiw, my original interpretation was that the
animation-range
properties each (independently) cut the timeline down to a particular segment, and then duration and delay play within that segment instead of within the whole timeline.An alternative view would be that
animation-range
is similar toinset
,delay
topadding
ormargin
, andduration
towidth
, and they operate as a set at the same time.Which worldview do we want to go with? (Or something else?)
The text was updated successfully, but these errors were encountered: