You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ideas/timelines.txt
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,16 +20,23 @@ Scroll-linked animations use a timeline based on scroll position, rather than on
20
20
These are animations whose timeline goes from 0% to 100% based on the scroll position of an ancestor scroll container. Proposal is to use an inline functional notation to identify the timeline using the ''animation-timeline'' property.
21
21
22
22
<code>
23
-
animation-timeline: auto | scroll(DIRECTION SCROLLERNAME?);
23
+
animation-timeline: auto | scroll(DIRECTION? SCROLLERNAME?);
24
24
DIRECTION = block | inline | vertical | horizontal
25
25
SCROLLERNAME = root | nearest | IDENT
26
26
</code>
27
27
28
-
**nearest** (the default) references the nearest ancestor scroll container; **root** references the main viewport scroller. IDENT references the ''container-name'' property: it filters the lookup to the nearest scroll container with the given ''container-name''.
28
+
**nearest** (the default) references the nearest ancestor scroll container; **root** references the main viewport scroller. IDENT references the ''container-name'' property: it filters the lookup to the nearest scroll container with the given ''container-name''. The default direction is ''block''.
29
29
30
30
(''auto'' is the initial value, and behaves as animations have always done, triggering on application of the animation and lasting for the specified duration and delay.)
31
31
32
-
Alternately, some ''scroll-timeline'' properties could be used to name the timeline for a more indirect but reusable approach.
32
+
Alternately, some ''scroll-timeline'' properties could be defined, which when used on a scroll container would allow naming its timeline for a more indirect but reusable approach.
33
+
34
+
35
+
<code>
36
+
scroll-timeline-name: IDENT#;
37
+
scroll-timeline-direction: DIRECTION#;
38
+
scroll-timeline: [DIRECTION? IDENT]#;
39
+
</code>
33
40
34
41
==== Animations linked to view progress as timeline ====
0 commit comments