Created
July 5, 2021 18:46
-
-
Save marshallmurphy/1de05825a5b30e065697f5b6364fd6e0 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
const animate = () => { | |
let start = sequence.segments[0]; | |
let stop = sequence.segments[1]; | |
// here | |
if (stop === 1 || stop === 90) { | |
start = 0; | |
stop = 45; | |
} else { | |
start = 45; | |
stop = 90; | |
} | |
setSequence({ | |
segments: [start, stop], | |
forceFlag: true | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment