Control the speed of an animation

Control the speed of an animation

Hi,

I saw a lot of time animations which have a fast speed but when it comes to the end they're getting slower. How is this possible? How do I control the speed of an element from slow to fast or fast to slow?