| Index: sky/examples/animation/basic.sky
|
| diff --git a/sky/examples/animation/basic.sky b/sky/examples/animation/basic.sky
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f307aa4ad14b13cd1bbb305b76ed422952ab7f9a
|
| --- /dev/null
|
| +++ b/sky/examples/animation/basic.sky
|
| @@ -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>
|
|
|