29 Tests that motion path animations stop an existing transform animation from being composited.
31 The two squares should make equivalent movements from left to right and back to left. They need not be perfectly in time.
37 var div1
= document
.getElementById('div1');
38 var div2
= document
.getElementById('div2');
40 function startAnimations() {
42 {transform
: 'translate(0px)'},
43 {transform
: 'translate(400px)'},
44 {transform
: 'translate(0px)'}
51 {transform
: 'translate(0px)'},
52 {transform
: 'translate(800px)'}
57 setTimeout(function() {
58 div2
.style
.motionPath
= 'path("m 0 0 h -800")';
59 div2
.style
.motionRotation
= '0deg';
62 {motionOffset
: '100%'}
69 requestAnimationFrame(startAnimations
);