JSFiddle - React, Tailwind, and code Playground

by madhugb

HTML

<script src="http://madhugb.com/js/spritespin.js"></script>
<div class='spritespin'></div>

JavaScript

$(document).ready(function(){
    $(".spritespin").spritespin({
      width    : 640,  // window width
      height   : 437,  // window height
      frames   : 29,   // number of frames
      resX     : 21760,// sprite sheet resolution
      resY     : 437,  // sprite sheet resolution
      sense    : -1,   // inverts drag direction to match the spin of the photograph
        source   : "http://madhugb.com/images/sprite-3eea0052fa19fa1276c4d472e58224168.jpg"
    });
});