Scroller Question

I want to make one of those scrollers that slides the text to the correct spot, not snap right to it. I found a component that I could buy that would do that, but I’d really like to know how i could do it myself. Could anyone point me in the right direction?