Motio – jQuery plugin for sprite based animations and panning.
jQuery plugin for simple but powerful sprite based animations and panning.
Motio is called on an element representing animation container, where animation is delivered as a CSS background image.
In sprite based animations, container should have the dimensions of one sprite frame. E.g, if you have 10 frames in a horizontal sprite that is 1000 x 100 pixels big, the container should be 100 x 100 pixels big.
In panning, container size doesn’t play any role, just the background image should be seamless. Or not :), depending on what are you going for.
GitHub Project – https://github.com/Darsain/motio