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

Do we have a "Disable change position animation" option? #646

Closed
lmhung opened this issue Jan 25, 2015 · 1 comment
Closed

Do we have a "Disable change position animation" option? #646

lmhung opened this issue Jan 25, 2015 · 1 comment

Comments

@lmhung
Copy link

lmhung commented Jan 25, 2015

Is there an option to disable elements change position transition? transitionDuration: 0 disable all transitions, but I want to keep hide and reveal effect.

@desandro
Copy link
Owner

This sounds like an Isotope issue, not quite Masonry. Closing here. Follow along at metafizzy/isotope#855

The same solution does work for Masonry. Add this code

// disable position transition
Masonry.prototype._positionItem = function( item, x, y ) {
  item.goTo( x, y );
};

See example http://codepen.io/desandro/pen/RNgBbN

@desandro desandro closed this as completed Apr 1, 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

No branches or pull requests

2 participants