This is a small and simple plain script in JS to have a 360 degree image rotation with just images in order.
- Add the
rotation.jsfile to your project and include it in your HTML. - Create a container with an ID and add your images in the correct order (Clockwise).
- Create a new instance of the
Image360Rotationclass with the corresponding ID and desired speed and rotation direction.
AstroFoxLabs (Vinzenz Wetzel)
