To change the animation speed, modify the $delay variable in the script:
$delay = 100; # Time in milliseconds between frames
Common values:
50 - Very fast animation100 - Normal speed250 - Slower animation500 - Half-second between frames