solitairewin

You win!

Usage no npm install needed!

<script type="module">
  import solitairewin from 'https://cdn.skypack.dev/solitairewin';
</script>

README

For nice victory

View example

Options

viewport

The container element to which the canvas will be appended. The animation will conform to the size of this element.

images

An array of the names of all images to be animated.

path

Path to the folder containing the images.

fps

Control that FPS, doggie. Defaults to 60.

Notes

Can be used with browserify or just loaded globally. Depends on jQuery and async.

There's a load method which accepts a callback and loads the images. A load event is also triggered on load. Using start implicitly calls load.