Skip to content

Instantly share code, notes, and snippets.

@marshallmurphy
Created July 5, 2021 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marshallmurphy/1de05825a5b30e065697f5b6364fd6e0 to your computer and use it in GitHub Desktop.
Save marshallmurphy/1de05825a5b30e065697f5b6364fd6e0 to your computer and use it in GitHub Desktop.
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