| OLD | NEW |
| (Empty) | |
| 1 Animation API |
| 2 ============= |
| 3 |
| 4 ```javascript |
| 5 |
| 6 dictionary EasingFunctionSettings { |
| 7 Float duration; // required |
| 8 Callback? completionCallback = null; |
| 9 } |
| 10 |
| 11 abstract class EasingFunction { |
| 12 abstract constructor (EasingFunctionSettings settings); |
| 13 abstract Float getFactor(Float time); |
| 14 // calls completionCallback if time >= duration |
| 15 // then returns a number ostensibly in the range 0.0 to 1.0 |
| 16 // (but it could in practice go outside this range, e.g. for |
| 17 // animation styles that overreach then come back) |
| 18 } |
| 19 |
| 20 |
| 21 ``` |
| OLD | NEW |