Skip to content

Instantly share code, notes, and snippets.

@daybrush
Last active October 30, 2018 10:31
Show Gist options
  • Save daybrush/1e632631e020d1d82cea7a12eceef326 to your computer and use it in GitHub Desktop.
Save daybrush/1e632631e020d1d82cea7a12eceef326 to your computer and use it in GitHub Desktop.
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