Skip to content

Commit f94b7a0

Browse files
estellegithub-actions[bot]chrisdavidmills
authored
New guide: timeline range names (mdn#42853)
* New guide: timeline range names * Update files/en-us/web/css/guides/scroll-driven_animations/timeline_range_names/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * typo * Apply suggestions from code review Co-authored-by: Chris Mills <chrisdavidmills@gmail.com> * added exit crossing svg. single svg css * added exit crossing svg. single svg css * updates per review * edits per review * change from 30/70 to 20/60 * the rest of the updates post review * edits per review 1 * remove insets * Delete files/en-us/web/css/guides/scroll-driven_animations/timeline_insets/index.md * finished, i hope * edits per review * Update entry-crossing explanation in documentation Clarify description of entry-crossing behavior in scroll-driven animations. --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
1 parent 00d9614 commit f94b7a0

File tree

9 files changed

+727
-2
lines changed

9 files changed

+727
-2
lines changed

files/en-us/web/css/guides/scroll-driven_animations/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ Scroll the element in the inline direction to see its background color change. S
141141

142142
- [Scroll-driven animation timelines](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timelines)
143143
- : Scroll-driven animation timelines and creating scroll-driven animations.
144+
- [Timeline range names](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timeline_range_names)
145+
- : The {{cssxref("timeline-range-name")}} data type: Understanding the various timeline range names.
144146

145147
## Related concepts
146148

files/en-us/web/css/guides/scroll-driven_animations/timeline_range_names/index.md

Lines changed: 715 additions & 0 deletions
Large diffs are not rendered by default.

files/en-us/web/css/guides/scroll-driven_animations/timelines/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,5 +360,7 @@ Because the `animation` shorthand sets the `animation-timeline` to `auto`, use a
360360

361361
## See also
362362

363-
- [CSS animations](/en-US/docs/Web/CSS/Guides/Animations)
363+
- [Understanding timeline range names](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timeline_range_names)
364+
- [Scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations) module
365+
- [CSS animations](/en-US/docs/Web/CSS/Guides/Animations) module
364366
- [Web Animations API](/en-US/docs/Web/API/Web_Animations_API)

files/en-us/web/css/reference/at-rules/@keyframes/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ See [Using CSS animations](/en-US/docs/Web/CSS/Guides/Animations/Using) and [scr
160160
- [Using CSS animations](/en-US/docs/Web/CSS/Guides/Animations/Using)
161161
- [CSS animations](/en-US/docs/Web/CSS/Guides/Animations) module
162162
- [CSS scroll-driven animation timelines](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timelines)
163+
- [Understanding timeline range names](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timeline_range_names)
163164
- [CSS scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations) module
164165
- [Animate elements on scroll with Scroll-driven animations](https://developer.chrome.com/docs/css-ui/scroll-driven-animations)
165166
- {{domxref("AnimationEvent")}}

files/en-us/web/css/reference/properties/animation-range-end/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,5 +226,6 @@ Scroll to see the element animate. Then toggle the checkbox at the end of the bl
226226
- {{cssxref("view-timeline-inset")}}
227227
- {{domxref("Element.animate()")}} `rangeStart` property
228228
- [Scroll-driven animation timelines](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timelines)
229+
- [Understanding timeline range names](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timeline_range_names)
229230
- [CSS scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations) module
230231
- [View progress timeline: Ranges and animation progress visualizer](https://scroll-driven-animations.style/tools/view-timeline/ranges/)

files/en-us/web/css/reference/properties/animation-range-start/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,5 +202,6 @@ Scroll to see the element animate. Notice how the element is already scaled and
202202
- {{cssxref("view-timeline-inset")}}
203203
- {{domxref("Element.animate()")}} `rangeStart` property
204204
- [Scroll-driven animation timelines](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timelines)
205+
- [Understanding timeline range names](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timeline_range_names)
205206
- [CSS scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations) module
206207
- [View progress timeline: Ranges and animation progress visualizer](https://scroll-driven-animations.style/tools/view-timeline/ranges/)

files/en-us/web/css/reference/properties/animation-range/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,5 +275,6 @@ Check the checkbox to apply the `animation-fill-mode` property to the animated e
275275
- {{cssxref("timeline-scope")}}
276276
- {{cssxref("view-timeline-inset")}}
277277
- {{cssxref("animation-fill-mode")}}
278+
- [Understanding timeline range names](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timeline_range_names)
278279
- [CSS scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations) module
279280
- [View timeline range visualizer](https://scroll-driven-animations.style/tools/view-timeline/ranges/)

files/en-us/web/css/reference/selectors/keyframe_selectors/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Originally defined in the [CSS animation module](/en-US/docs/Web/CSS/Guides/Anim
198198
}
199199
```
200200

201-
If the element's animation timeline does not have a corresponding named view timeline range, then any keyframes attached to points on that named timeline range are ignored. These attachment points may be outside the active interval of the animation. When this occurs, the automatic `from` (`0%`) and `to` (`100%`) keyframes are only generated for properties that don't have keyframes at or earlier than `0%` or at or after `100%`, respectively.
201+
If the element's animation timeline does not have a corresponding named view timeline range, then any keyframes attached to points on that named timeline range are ignored. These attachment points may be outside the active interval of the animation. When this occurs, the automatic `from` (`0%`) and `to` (`100%`) keyframes are only generated for properties that don't have keyframes at or earlier than `0%` or at or after `100%`, respectively. See the [timeline range name guide](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timeline_range_names) for more information.
202202

203203
## Examples
204204

@@ -375,6 +375,7 @@ The `background-color` and `outline-width` properties are set in `30%` and `40%`
375375
- {{cssxref("@keyframes")}}
376376
- {{cssxref("animation")}}
377377
- {{cssxref("animation-range")}}
378+
- [Understanding timeline range names](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timeline_range_names)
378379
- [Using CSS animations](/en-US/docs/Web/CSS/Guides/Animations/Using)
379380
- [CSS animations](/en-US/docs/Web/CSS/Guides/Animations) module
380381
- [CSS scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations)

files/en-us/web/css/reference/values/timeline-range-name/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ See the [View timeline range visualizer](https://scroll-driven-animations.style/
6161
- {{cssxref("animation-timeline")}}
6262
- {{cssxref("scroll-timeline")}}
6363
- {{cssxref("view-timeline-inset")}}
64+
- [Understanding timeline range names](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timeline_range_names)
6465
- [Scroll-driven animation timelines](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timelines)
6566
- [CSS scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations) module
6667
- [View timeline range visualizer](https://scroll-driven-animations.style/tools/view-timeline/ranges/)

0 commit comments

Comments
 (0)