You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- list of custom properties names with their `default` value (`originY: 50, anotherCustomProp: 0`).
228
-
-`draw` function that will be responsible for rendering that custom properties. It will be called on each animation frame and will be provided with `el` and `props` object that contain current states for all custom properties (`props.originY, props.anotherCustomProp`). Feel free to apply that state to the `el` any way that works for you.
227
+
228
+
- list of custom properties names with their `default` value (`originY: 50, anotherCustomProp: 0`).
229
+
-`draw` function that will be responsible for rendering that custom properties. It will be called on each animation frame and will be provided with `el` and `props` object that contain current states for all custom properties (`props.originY, props.anotherCustomProp`). Feel free to apply that state to the `el` any way that works for you.
229
230
230
231
All custom properties are expected to be plain `numbers`, you can define `units` in the `draw` function.
`Timeline` inherits all properties, callbacks and public methods from `Tween`, the only difference between `Tween` and `Timeline` is that the later doesn't have the `duration` property - it gets calculated from durations/delays of children. Also `Timeline` add two public methods that can recieve children. Please check the Tween API for reference.
7
7
@@ -39,4 +39,4 @@ const timeline = new mojs.Timeline({
0 commit comments