Is there a way to do two-way animation (e.g shaking animation)? Like this:
<Motion
defaultStyle={{
ypos: -110
}}
style={{
ypos: spring(-110)
//This is definitely not correct, but I want spring to animate to a certain value
//Then go back to -110, so the component looks like it's shaking?
}}>
{({ypos}) =>
<AnimatedBox />
}
</Motion>
Is there a way to do two-way animation (e.g shaking animation)? Like this: