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

    properjs-controllerpublic

    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

    77

    version

    0.2.0

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar