-
Notifications
You must be signed in to change notification settings - Fork 688
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
[scroll-animations-1] Add examples #11421
base: main
Are you sure you want to change the base?
Conversation
I believe this PR is ready for review. One thing I struggled with is there to place the examples for If I were an author, I would like to see the examples that use As a result, though, the section itself might need some rewording / extra sentences which I can tackle later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
That should not hold up merging this PR however |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments. General comment is, the goal of example text is to step away from the spec's precision and generality and help the reader see concretely what it does, using the example as an illustration of what the spec means in more practical and illustrative terms.
Co-authored-by: fantasai <[email protected]>
Co-authored-by: fantasai <[email protected]>
Co-authored-by: fantasai <[email protected]>
Co-authored-by: fantasai <[email protected]>
…instances per match
Addressed the comments. Re-requesting a review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went over the PR with @fantasai. Added remarks together for me to resolve.
@@ -670,6 +876,27 @@ spec:selectors-4; type:dfn; text:selector | |||
The values of {{ViewTimeline/subject}}, {{ScrollTimeline/source}}, and {{AnimationTimeline/currentTime}} | |||
are all computed when any of them is requested or updated. | |||
|
|||
<div class=example> | |||
In the following example, each child of the `.scroller` element | |||
will reveal itself as it crosses the scrollport. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Make more explicit that this is the same as the CSS example
|
||
<div class=example> | ||
In the following example, each direct child of the `.scroller` element | ||
reveals itself as it enters the scrollport instead of when entirely crossing it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarify what this looks like from the user's perspective: it's opaque once fully visible.
``` | ||
|
||
The `reveal` effect is linked to the ''entry'' range | ||
while the `hide` effect is linked to the ''exit'' range. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Add extra explanation about the visual output
Add some examples to the scroll-animations-1 spec.