How do I make widget animations reusable?

I found an answer here which helped.

As an example,: Say you wanted a Menu Widget, where the text is a button that plays an animation when hovered.

You create a new widget (call it Button Widget) and set it up with the functionality you require.

Then in your Menu Widget you compose the items using your Button Widget.

Hope that makes sense, best of luck!