With Scroll-Driven Animations 1 we have defined some new types of timelines which authors can use to run an animation on. Besides the existing DocumentTimeline
, authors can now use a ScrollTimeline
to animate based on a scroller’s scroll offset or ViewTimeline
to animate as an element crosses its scrollport.
I’ve added this topic to get more ideas around new potential timelines. For example, one type of timeline we at Google discussed was a MediaPlaybackTimeline
, where you could sync up animations to a media element – <audio>
or <video>
– play position.
video {
timeline: --video;
}
.animated {
animation: slide linear forwards;
animation-timeline: --video;
animation-range: 1s 5s;
}
Would be great if we could gather more ideas around this timeline and other potential timelines. Maybe a HoverTimeline
? A TimeOfTheDayTimeline
? WhateverTimeline
?