Skip to content

Commit 6560d6a

Browse files
committed
[scroll-animations-1] time-based delays do not apply to scroll animations
See w3c#7575 w3c@43b12e4#r103992779 More background https://lists.w3.org/Archives/Public/www-style/2022Dec/0007.html
1 parent ea51d0c commit 6560d6a

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

scroll-animations-1/Overview.bs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -685,17 +685,21 @@ spec: cssom-view-1; type: dfn;
685685
can also be further restricted to a particular timeline range
686686
(see [[#named-range-animation-declaration]]).
687687

688+
Time-based delays ('animation-delay')
689+
do not apply to [=scroll-driven animations=],
690+
which are distance-based.
691+
688692
## Finite Timeline Calculations ## {#finite-attachment}
689693

690694
Unlike time-driven timelines,
691695
[=scroll-driven timelines=] are finite,
692696
thus [=scroll-driven animations=] are always attached
693697
to a finite timeline range.
694-
The animation’s delays ('animation-delay')
695-
and iterations ('animation-iteration-count')
698+
The animation’s <!-- delays ('animation-delay')
699+
and --> iterations ('animation-iteration-count')
696700
are set within the limits of this finite range.
697701
If the specified duration is ''animation-duration/auto'',
698-
then once any delays are subtracted,
702+
then <!-- once any delays are subtracted, -->
699703
the remaining range is divided by its [=iteration count=] ('animation-iteration-count')
700704
to find the [=used value|used=] duration.
701705

0 commit comments

Comments
 (0)