image-animate

image-animate is a compiled Lisp function in `image.el'.

(image-animate IMAGE &optional INDEX LIMIT)

Start animating IMAGE.
Animation occurs by destructively altering the IMAGE spec list.

With optional INDEX, begin animating from that animation frame.
LIMIT specifies how long to animate the image. If omitted or
nil, play the animation until the end. If t, loop forever. If a
number, play until that number of seconds has elapsed.