-
Notifications
You must be signed in to change notification settings - Fork 711
[scroll-animations-1] Term for concept of timeline phases #7701
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
Just to clarify, when given just a single |
How about "range" instead of "phase" or "cue"? |
Cues aren't time ranges, they're points in time. So I think I'd like to veto that idea. |
So just to update the proposal, we can call the concept timeline ranges. In CSS, we can make animation-delay a shorthand for specifying start and end delay, and/or a named range, i.e.
Where:
Given this, I don't know if we need an |
@flackr Current draft is using the term “named timeline range”, fwiw. Maybe review https://drafts.csswg.org/scroll-animations-1/#timeline-ranges again and let me know what you think? |
Looks good to me! |
In #7044 we resolved to add the concept of named timeline phases:
However, there are concerns with using the term phases for this, @birtles pointed out that effect phases would still exist (even if the prior timeline phases concept went away) and have a fairly different meaning. For the css shorthand property we could avoid using the term, however we would still need a name for this concept in the spec and likely need to use this concept name for the interface used for #7589.
So far the only alternative term to phase that has been proposed is cue, so our current options are:
phase (stick with the current proposed terminology)
You could think of these as the same as effect phases (ranges of time) and they could even exist alongside before and after phases, though it does feel as if it should be a single active phase at any time which may not continue to be true.
cue
Define this new term, representing a range of the timeline time.
In addition to choosing a term we should also decide what to call the shorthand:
This could be any of the options I proposed on the original issue or we could omit the shorthand entirely. However on further thought I feel like this should be some variation on animation-delay as it could be used to express start and end delay, and currently the end delay is not settable via CSS. My strawman proposal would be to expand the existing
animation-delay
property to accept one (current version, just specify start delay) or two values (start and end delay), where either of those delays can include phases as proposed.Where either delay is
<time> | <phase> | <phase> <percent>
. Omitting the<percent>
would resolve to 0 or 100% depending on whether this is the start or end delay.The text was updated successfully, but these errors were encountered: