JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1243
  • Score
    100M100P100Q121169F
  • License MIT

Javascript library for creating flipbook animations

Package Exports

  • spritespin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (spritespin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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@beta/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