时间轴动画

@Timeline

Introduction

时间轴动画常用属性
item desc
animation-timeline none | auto | scroll() | view()
animation-range 复合属性;动画范围;默认 0 100%
animation-range-start 动画开始范围;默认 0
animation-range-end 动画结束范围;默认 100%

view()

Syntax

Cases

  1. 通常取值 view(50% 10%)

    While scrolling down, start at 10% from the bottom and finish at 50% from the top

    Conversely, scrolling up, the animation proceeds in the reverse direction, starting at 50% from the top, moving backward through the animation, and ending at 10% from the bottom

  2. animation-timeline: view(50% 10%);
    animation-timeline: view(10% 50%);
    animation-timeline: view(40% 60%);
    animation-timeline: view(40% 40%);
[] Animation Timeline view() 时间轴动画
[] 时间轴联动导航

scroll()

[] 随页面滚动的风火轮