Simple animation with mathematica [duplicate]

I have just started to learn Mathematica. I want to see how can I generate animations in Mathematica. For example, the I want to plot an equation $$x(t)=5\cos(10t)\tag{1}$$ which I can do. But suppose I interpret $t$ as the time, and $x(t)$ the position of the particle at time $t$, how can I generate an animation which showing a ball changing its position with time according to (1)?

Animate[

• With Point[Dynamic@{t, 5 Cos[10 t]}] only coordinates will need to be updated instead of the whole plot. – Kuba May 1 '18 at 19:46