Last active
January 17, 2017 15:58
-
-
Save Chryus/2cb87f3f2ce37e2fb93b21aca60ed253 to your computer and use it in GitHub Desktop.
This file contains 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
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