Forum Discussion
AlexMilyaev-f86
5 months agoCommunity Member
This approach has its downsides, for example, a user can click the button at the moment it's moving. The mechanism will work, but the movement will be jerky. By adding a few additional triggers, you can either disable the ability to click the button while it's moving, or make it so that if you click the button during movement, it completes its motion and then immediately starts a new one.
If you want the user to be able to click the button during movement, and right after the click, the button starts moving from its current position back to its original position - you will need JS and the use of the GSAP library to control the movement. This is a more labor-intensive task.