4.1.0 • Published 3 years ago

spritespin v4.1.0

Weekly downloads
1,311
License
MIT
Repository
github
Last release
3 years ago

SpriteSpin

SpriteSpin is library for playing animations from image frames. It requires an array of images or a stiched sprite sheet and plays them frame by frame like a flip book. The aim of this plugin is to provide a 360 degree view of any kind of product.

The library is built with extensibility in mind and comes with a plugin system to customize its behavior.

NPM

install with npm

$ npm install spritespin

or Yarn

$ yarn add spritespin

CDN

<script src='https://unpkg.com/spritespin@x.x.x/release/spritespin.js' type='text/javascript'></script>

Usage

SpriteSpin.create({
  target: '#spritespin-preview',
  source: SpriteSpin.source('http://spritespin.ginie.eu/images/rad_zoom_{frame}.jpg', {
    frame: [1,34],
    digits: 3,
  })
})

License

Code licensed under the MIT license

5.0.0-beta.0

3 years ago

5.0.0-beta.1

3 years ago

4.1.0

5 years ago

4.0.11

5 years ago

4.0.10

5 years ago

4.0.9

5 years ago

4.0.8

5 years ago

4.0.7

5 years ago

4.0.6

6 years ago

4.0.5

6 years ago

4.0.4

6 years ago

4.0.3

6 years ago

4.0.2

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

3.4.3

6 years ago