Easing mask?

How would I go about making an easing mask? One that sticks to a horizontal axis and follows the mouse pointer (already got that doen) but also eases before it stops, like a motion ease; slowly slowing down instead of quickly whipping to where the user moves the mouse.