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

JavaScript API Changes #40

Open
gakimball opened this issue Oct 19, 2015 · 0 comments
Open

JavaScript API Changes #40

gakimball opened this issue Oct 19, 2015 · 0 comments

Comments

@gakimball
Copy link
Contributor

Here are some things we want to add or change to the JavaScript API.

animateIn and animateOut would be renamed transitionIn and transitionOut, to make it less confusing that a function called "animate" only works with transitions.

Right now there's no method to add animations, because all you need to do is add a class. But we could write a wrapper that also handles removing the class for you, and giving you a callback that fires when the animation completes (if it has a finite number of loops).

It might look like this:

MotionUI.animate('#element', 'wiggle', function() {
  // Animation done
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant