-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Prepend and Remove not working as expected #492
Comments
Your JS code is actually okay. The problem is how the To use $container.prepend(b).masonry( 'prepended', b ); But there's another little bug to resolve. By default This is indeed a bug which I'll keep an eye on in metafizzy/outlayer#13 |
I forgot to say 🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸 For
Very much appreciated! |
Hi again! ;) Can I change the animation of appending the black items? http://jsfiddle.net/vpascoal/EVy6n/ The black items are not being shown in place where they will be at the end. I want to replicate this behavior: http://codepen.io/desandro/pen/nhekz Thank you |
Yes! If you're using jQuery, I recommend appending a jQuery object. var $items = $();
for (i = 0; i < 5; i++) {
b = $("#black-item").clone().prop("id", "black-item-" + i).removeClass("is-hidden");
$items = $items.add( b );
}
$container.append( $items ).masonry('appended', $items ); |
Hi!
Sorry for posting this here. I think is not an issue with masonry but prepend and remove methods are not working as I expected.
Please can you see this fiddle and read the issues in js box?
http://jsfiddle.net/vpascoal/3D2tP/
What I want to do is add items after green box (the green box is always in top left position - stamped) and remove items from the layout.
Thank you
The text was updated successfully, but these errors were encountered: