Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: ManualTests/animation/compositor-reverse.html

Issue 649563003: Web Animations: Compositor timeOffset should be sensitive to playback rate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/animation/AnimationPlayer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <style>
2 div {
3 height: 100px;
4 width: 100px;
5 background: blue;
6 }
7 </style>
8 <p>
9 The two squares should <strong>smoothly</strong> rock backwards and forwards.
10 <div id="target1"></div>
11 <div id="target2"></div>
12 <script>
13 var player1 = target1.animate([
14 {transform: 'none'},
15 {transform: 'rotate(90deg)'}
16 ], 1000);
17
18 var player2 = target2.animate([
19 {transform: 'none', background: 'blue'},
20 {transform: 'rotate(90deg)', background: 'blue'}
21 ], 1000);
22
23 setInterval(function() {
24 player1.reverse();
25 player2.reverse();
26 }, 100);
27 </script>
OLDNEW
« no previous file with comments | « no previous file | Source/core/animation/AnimationPlayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698