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

Unified Diff: sky/examples/animation/basic.sky

Issue 772673002: Fix Animations, Remove Compostior Animations. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: CompositorPendingAnimations -> PendingAnimations Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/rendering/style/StyleRareNonInheritedData.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « sky/engine/core/rendering/style/StyleRareNonInheritedData.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698