...
Javascript module
https://vvs.autosyncstudio.com/lib/autosync-spin.module.js – recommended for JavaScript frameworks or websites built with NodeJS.Plain old JavaScript file
https://vvs.autosyncstudio.com/lib/autosync-spin.js – recommended in all other cases
2. How to Use It
1. Initialization
Import the library.
Create a
div
to use it as a container and assign anid
to it.Instantiate
AutosyncSpin
passing a config object with theid
, along with a path to spin images and a desired size.
...
id
– The id assigned to the container.path
– An absolute URL (or a relative path under the same domain) where images are stored. All the images used for this library must be named from 1 to 36 and be in WebP format.size
– The desired size of the viewer(in pixels).
...
3.
...
Method Reference
The library comes with utility methods to interact with its rendered content.
...