Skip to content

Instantly share code, notes, and snippets.

@marshallmurphy
Created July 5, 2021 18:47
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/d7f262ee6b8f0e94d355970e5b2b5c7a to your computer and use it in GitHub Desktop.
Save marshallmurphy/d7f262ee6b8f0e94d355970e5b2b5c7a to your computer and use it in GitHub Desktop.
const animate = () => {
let start = sequence.segments[0];
let stop = sequence.segments[1];
if (stop === 1 || stop === 90) {
start = 0;
stop = 60;
} else {
start = 60;
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