Inertia on button

hi, i’ve got a button that in the moment that mouse is on start moving, and when it leave’s the motion stop.
i wanna know how do i can make the inertia effect, i mean, tht the movement continue a little bit before stop…thanks.