animoto

0.0.2 • Public • Published

Animoto

Javascript utility for animations

animoto demo

Install

$ npm install --save animoto

Usage

var Animoto = require('animoto');

var $square = document.querySelector('#square');

Animoto({
  start: $square.offsetLeft,
  stop: $square.offsetLeft + 300,
  duration: 2000 
})
.on('tick', function(val) {
  var $square = document.querySelector('#square')
  $square.style.left = val + "px";
})

.on('done', function(){
  console.log('done')
})
.begin()

Readme

Keywords

none

Package Sidebar

Install

npm i animoto

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • joegesualdo