How can I animate an image, I have an arrow in png , and I would like to animate it with css3 or javascript , I am studying transitions, transformations, etc, but I still do not know how. It occurs to me to do it with javascript , with a for cycle changing its position, but this ciclo for
would restart every so often so that the arrow will not stop moving and that would be a lot of expense of memory , then how should I do it ?
Something like this: