Small JavaScript library for simple but powerful sprite based animations and panning.
Motio takes an element and animates its background position to create an animation effect. All is super optimized for speed and chained to the requestAnimationFrame, with a polyfill for older browsers without it.
That being said, animating the element background is not the fastest possible way how to do this (canvas solutions are a lot faster), but it is sure as hell the most simple one, and compatible with everything from IE6 and up.
Motio has no dependencies, but there is an optional Motio jQuery plugin extension available.
Works everywhere.
Motio upholds the Semantic Versioning Specification.
Latest stable release:
- Production
motio.min.js
- 3KB, 1.6KB gzipped - Development
motio.js
- 12KB
jQuery plugin version:
- Production
jquery.motio.min.js
- 3.7KB, 1.8KB gzipped - Development
jquery.motio.js
- 13.5KB
When isolating issues on jsfiddle, you can use this URL:
- Markup - how should the HTML & CSS look like
- Calling - how to call Motio
- Options - all available options
- Properties - accessible Motio object properties
- Methods - all available methods, and how to use them
- Events - all available events, and how to register callbacks
Please, read the Contributing Guidelines for this project.