😄animation-timeline có phải nó làm việc với thanh cuộn (ok)
Example 1.1
/* Function with no parameters set */
animation-timeline: scroll();
/* Values for selecting the scroller element */
animation-timeline: scroll(nearest); /* Default */
animation-timeline: scroll(root);
animation-timeline: scroll(self);
/* Values for selecting the axis */
animation-timeline: scroll(block); /* Default */
animation-timeline: scroll(inline);
animation-timeline: scroll(y);
animation-timeline: scroll(x);
/* Examples that specify scroller and axis */
animation-timeline: scroll(block nearest); /* Default */
animation-timeline: scroll(inline root);
animation-timeline: scroll(x self);
Example 1.1 hoặc chúng ta có thể sử dụng cách đặt tên như này

Example 2


PreviousDifference between animation and transition in CSSNextTừ bài animation-timeline làm việc với thanh cuộn tìm ra cách sử dụng background-clip: text;
Last updated