DButton Animations.

Hello, I’ve recently been trying to make DButton animations for when they are clicked, to make some menu’s I have made look nicer, and fancier.
I’ve been trying to make some animations like this:

But, I have no idea where to start, I was wondering whether someone could help with some starter, don’t want all the code, want to learn still. Just want to go more advanced.
Thank you if you can help!

Use draw.Circle located at the bottom example of

surface.DrawPoly

Then simply set the x and y values to the position of the mouse(

Panel:CursorPos) and increase the radius using

math.Approach or

Lerp

Hope this helps!

Awesome, thank you. Will give it a go.