Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

properjs-controller

0.2.0 • Public • Published

Controller

A very useful, arbitrary event and animation frame cycle class.

Installation

npm install properjs-controller --save-dev

Usage

var Controller = require( "properjs-controller" ),
    controller = new Controller();
 
// Bind event
controller.on( "my-event", function () {
    // Handle event here
});
 
// Fire event
controller.fire( "my-event", [...pass arguments here] );
 
// Cycle the animation frame
controller.go(function () {
    // Handle frames here
});

install

npm i properjs-controller

Downloadsweekly downloads

31

version

0.2.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar