Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommonJSify #22

Closed
wants to merge 1 commit into from
Closed

CommonJSify #22

wants to merge 1 commit into from

Conversation

orcaman
Copy link

@orcaman orcaman commented Apr 7, 2015

With these slight changed Motio is CommonJS/browserify compatible.

For example, this is how I'm using it:

var Motio = require('motio');
...
...
_sprite = new Motio(element, {
            fps: 1,
            frames: numFrames,
            bgWidth: 11520,
            bgHeight: 6120,
            width: frameWidth,
            height: frameHeight,
            vertical:true,
        });

@darsain
Copy link
Owner

darsain commented Apr 7, 2015

Yah, rewriting motio into a proper component architecture is on a to-do list. I've made an issue for it #23

I'm definitely not adding UMD blocks into source code though. That'll only be in a standalone build.

@darsain darsain closed this Apr 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants