Hi!
Sorry for the barrage of issues, but I was wondering if there is a way to trigger the exit animation of a component via toggling a prop on the LiveMotion.motion component?
The docs outline a way to do trigger exit animations via a LiveMotion.JS call, but I can't seem to find a prop that will allow me trigger the exit animation by toggling the value of a prop.
Looking for something along the lines of:
<LiveMotion.motion
id="foo"
show={@some_state_on_my_socket}
animate={[y: 20, opacity: [0, 1]]}
exit={[y: 0, opacity: [1, 0]]}
transition={[duration: 1.5]}
>
where toggling @some_state_on_my_socket to true or false would trigger the animate and exit animations respectively.
Is this supported? Thanks!
Hi!
Sorry for the barrage of issues, but I was wondering if there is a way to trigger the exit animation of a component via toggling a prop on the
LiveMotion.motioncomponent?The docs outline a way to do trigger exit animations via a
LiveMotion.JScall, but I can't seem to find a prop that will allow me trigger the exit animation by toggling the value of a prop.Looking for something along the lines of:
where toggling
@some_state_on_my_socketto true or false would trigger the animate and exit animations respectively.Is this supported? Thanks!