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

Unified Diff: sky/specs/animation.md

Issue 824773002: Specs: Split apis.md into dom.md, events.md, idl.md, and move the remainder into README.md and modu… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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/specs/README.md ('k') | sky/specs/apis.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/animation.md
diff --git a/sky/specs/animation.md b/sky/specs/animation.md
new file mode 100644
index 0000000000000000000000000000000000000000..e101bb4f46b265905c32ff9ea53310b7e958eceb
--- /dev/null
+++ b/sky/specs/animation.md
@@ -0,0 +1,21 @@
+Animation API
+=============
+
+```javascript
+
+dictionary EasingFunctionSettings {
+ Float duration; // required
+ Callback? completionCallback = null;
+}
+
+abstract class EasingFunction {
+ abstract constructor (EasingFunctionSettings settings);
+ abstract Float getFactor(Float time);
+ // calls completionCallback if time >= duration
+ // then returns a number ostensibly in the range 0.0 to 1.0
+ // (but it could in practice go outside this range, e.g. for
+ // animation styles that overreach then come back)
+}
+
+
+```
« no previous file with comments | « sky/specs/README.md ('k') | sky/specs/apis.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698