✅ Solved: How can I make an object return to its initial position after being dragged and release...

Context:


  • The object highlights on hover (outline appears).

  • On click, it plays a scale animation and can be dragged.

  • On release, it currently stays where it was dropped.

  • I want it to smoothly return to its original (initial) position after release.



What is the best approach to implement this using Rive’s State Machine?

Should I create a separate animation with keyframed position and trigger it on release?

How do I set up the Listener, Inputs, and transitions correctly?


Any example projects or documentation links would be appreciated.