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

Where to add additional code to be run after resize #43

Closed
humbucker81 opened this issue Nov 9, 2010 · 4 comments
Closed

Where to add additional code to be run after resize #43

humbucker81 opened this issue Nov 9, 2010 · 4 comments

Comments

@humbucker81
Copy link

Hi,

I need to apply extra jquery actions after masonry have rearranged the boxes, I don't know where I can paste my code in your plugin.
Right now I have to resize screen one more time for my code to be run...
I d'like this to be run every time boxes get rearranged.
Thank you

@desandro
Copy link
Owner

Hello! I appreciate you going over your issue in detail. But the best way for me to understand the problem would be if could take a look at a live demo. Please message me directly if you'd like to keep it private. If one's not available, would you be able to mimic the scenario in http://jsfiddle.net ?

@lukeshumard
Copy link

what if you bound another function to smartresize (what masonry uses for resizing)?

@seehat
Copy link

seehat commented May 30, 2011

You could use the complete event of jQuery in the animationOptions Array, in case of using jQuery Animation, but this would be called for every rearranged block:

animationOptions: {
   complete: function() { alert("finished"); }
}

@desandro
Copy link
Owner

desandro commented Dec 9, 2011

Masonry does not support after-animation callbacks. But Isotope does. After-animation callbacks are out-of-scope for Masonry and will not be added. If this is a must-have feature, use Isotope.

@desandro desandro closed this as completed Dec 9, 2011
This issue was closed.
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

4 participants