Fix Animations, Remove Compostior Animations.
This patch (re)hooks up animations so they start and removes the infrastructure required by blink to synchronize the compositor and main threads. R=ojan@chromium.org Review URL: https://codereview.chromium.org/772673002
This commit is contained in:
parent
25f8a50ffe
commit
253d078c89
18
engine/src/flutter/examples/animation/basic.sky
Normal file
18
engine/src/flutter/examples/animation/basic.sky
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<sky>
|
||||||
|
|
||||||
|
<div id="test">
|
||||||
|
Hello, Sky
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
window.addEventListener('load', function() {
|
||||||
|
var div = document.getElementById('test');
|
||||||
|
div.animate([
|
||||||
|
{ backgroundColor: 'red', opacity: 1 },
|
||||||
|
{ backgroundColor: 'green', opacity: 0}],
|
||||||
|
{
|
||||||
|
duration: 1000,
|
||||||
|
iterations: 2
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</sky>
|
Loading…
x
Reference in New Issue
Block a user