Animation JS

Animation JS changed so one time or continuous animation can be enabled
or disabled