4.1.0 • Published 4 years ago

spritespin v4.1.0

Weekly downloads
1,311
License
MIT
Repository
github
Last release
4 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

4 years ago

5.0.0-beta.1

4 years ago

4.1.0

5 years ago

4.0.11

6 years ago

4.0.10

6 years ago

4.0.9

6 years ago

4.0.8

6 years ago

4.0.7

6 years ago

4.0.6

6 years ago

4.0.5

7 years ago

4.0.4

7 years ago

4.0.3

7 years ago

4.0.2

7 years ago

4.0.1

7 years ago

4.0.0

7 years ago

3.4.3

7 years ago