Created
October 5, 2020 18:37
-
-
Save tpjnorton/4c8514fd2eee96e4dbdd554c4f9a3ccc 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
useCode( | |
() => [ | |
cond(and(not(breathing), clockRunning(clock)), stopClock(clock)), | |
cond( | |
and(not(not(breathing)), not(clockRunning(clock))), | |
startClock(clock) | |
), | |
set(animation, [ | |
loop({ | |
duration: 5000, | |
clock: clock, | |
easing: Easing.inOut(Easing.ease), | |
boomerang: true, | |
autoStart: false, | |
}), | |
]), | |
], | |
[animation, breathing] | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment