Slider with snapping

Hi

I am trying to make slider that slides vertically and would have 5 snapping points and
when user releases the slider it would move easing to nearest snappping point.
Thanks.