The images attribute indicates how many images contains the file you want to animate.

The interval attribute indicates how many seconds do you want to wait between each frame of the animation. You can use decimal values to make the animation change faster. If this attribute is not defined, 1 second will be used by default.

Besides listed attributes you can also define some behaviors by using some classes:

pause-on-click: allows users to pause and resume the animation by clicking on the image.

paused: the animation will start paused. You may want to combine this class with the pause-on-click.