Progressively increase a data when cursor is hover
Hi,
i’m pretty sure the response is somewhere but I don’t find it.
I have an animation and I want it to run when a hitbox is hovered (that’s is ok). When the cursor exit the hitbox, I would want the animation to backward from the current point of the timeline. I’ve seen it’s possible by nesting the animation from a composant to a new artboard but it seems strange that’s there is no other solution.
So I maybe found it : i bind my entire animation on a joystick, itself binded to an invisible objct who move on X. The X is set to a data, and if it’s possible to progressively increase the data value while the cursor is hovering the hitbox and decrease it when the cursor is out, well, my problem is solved. Obviously I also need a possibility to set a min and max for the X data.
If anyone have a solution, i would thanks it a lot :D