Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Javascript module
    https://vvs.autosyncstudio.com/lib/autosync-spin.module.js – recommended for JavaScript frameworks or websites built with NodeJS.

  2. Plain old JavaScript file
    https://vvs.autosyncstudio.com/lib/autosync-spin.js – recommended in all other cases

2. How to Use It

1. Initialization

  1. Import the library.

  2. Create a divto use it as a container and assign an id to it.

  3. Instantiate AutosyncSpinpassing a config object with the id, 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.

...