Created
May 17, 2019 17:28
-
-
Save nickstewart95/bb5939b9c692d91f052cd9d85209960d 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
morphBenjamin(fastfoward) { | |
let tag = 'chapter' + this.props.params.index; | |
if (fastfoward) { | |
this.morph.timeScale(10).tweenTo(tag, { onComplete: () => this.morph.timeScale(1) }); | |
} else { | |
this.morph.tweenTo(tag); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment