I'm sure there are other ways but I used a really ancient program called Microsoft Gif Animator to do this one with just 4 images.
http://discussion.autodesk.com/adskcsp/servlet/JiveServlet/download/121-455804-5090388-100925/Spring.gif
Give the image time to fully load and it should play continuously.
-----------------------------------------------------------------------------------------
Autodesk Inventor 2019 Certified Professional
Autodesk AutoCAD 2013 Certified Professional
Certified SolidWorks Professional
The CADWhisperer YouTube Channel