28
edits
(Update examples.) |
(Update CSS Features.) |
||
| Line 26: | Line 26: | ||
And update the range of ScrollTimeline based on the first matching conditions:<br /> | And update the range of ScrollTimeline based on the first matching conditions:<br /> | ||
- If ScrollTimeline doesn't have any related animation, maxRange should be 0ms.<br /> | - If ScrollTimeline doesn't have any related animation, maxRange should be 0ms.<br /> | ||
- If ScrollTimeline has related animation, maxRange should be maximum value of target effect end time of animations. <br /> | - If ScrollTimeline has related animation, maxRange should be a maximum value of target effect end time of animations. <br /> | ||
(If target effect end time is infinite, presumably we might use | (If target effect end time is infinite, presumably we might use dose duration of animation.) | ||
==== Examples ==== | ==== Examples ==== | ||
| Line 67: | Line 67: | ||
Then we should use 2000 ms as max scroll range. | Then we should use 2000 ms as max scroll range. | ||
=== Interface | === CSS Interface proposal === | ||
The CSS interface is same to [https://lists.w3.org/Archives/Public/www-style/2014Sep/0135.html Dean's proposal]. | The CSS interface is same to [https://lists.w3.org/Archives/Public/www-style/2014Sep/0135.html Dean's proposal]. | ||
There | There is three feature in his proposal, but 'animation-behavior' is not related to timeline. | ||
So in this document, we explain 'animation-timeline'(Original is 'animation-timebase') and 'animation-trigger' interface only. | So in this document, we explain 'animation-timeline'(Original name is 'animation-timebase') and 'animation-trigger' interface only. | ||
Common features: | |||
- The scroll container should notify the scroll | - The scroll container should notify the changes value of scroll to related ScrollTimeline. | ||
- The difference point is that animation target element and scroll container object is same. | - The difference point is that animation target element and scroll container object is same or subelement. | ||
- If the direction of scroll is reverse(like from bottom to top, from right to left), the timeline time is decreasing. | |||
- ScrollTimeline should remain the animation status in order to use fill mode. | |||
=== Demonstration === | |||
=== | |||
http://output.jsbin.com/wiwode | http://output.jsbin.com/wiwode | ||
== Design == | == Design == | ||
edits