Last active
October 30, 2018 10:31
-
-
Save daybrush/1e632631e020d1d82cea7a12eceef326 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Scene.SceneItem({ | |
0: { | |
number: 0, | |
stringWithUnit: "0px", | |
color: "#ff5555", | |
function: 0, | |
array: [0, 50, 100], | |
object: {"a": 1, "b": 2}, | |
etc: "A", | |
}, | |
10: { | |
number: 10, | |
stringWithUnit: "10px", | |
color: "rgba(255, 255, 255, 0)", | |
function: () => 100, | |
array: [50, 150, 150], | |
object: {"a": 6, "b": 9}, | |
etc: "B", | |
} | |
}, { | |
iterationCount: 1, | |
easing: Scene.steps(50, "end"), | |
}).on("animate", function (e) { | |
console.log(e.frame.toObject()); | |
}).play(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment