Skip to content

Instantly share code, notes, and snippets.

@Chryus
Last active January 17, 2017 15:58
Show Gist options
  • Save Chryus/2cb87f3f2ce37e2fb93b21aca60ed253 to your computer and use it in GitHub Desktop.
Save Chryus/2cb87f3f2ce37e2fb93b21aca60ed253 to your computer and use it in GitHub Desktop.
animate() {
let delaySoFar = 0;
for (let sequence of this.dataSet) {
let delay = sequence[0] + delaySoFar;
let objects = sequence.filter(this.isObject);
let styles = this.formatStyles(objects);
setTimeout(() => {
this.element.style = styles;
}, delay);
delaySoFar = delay;
}
styles;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment