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

Destroy, reload #8

Open
ricnunes opened this issue Feb 17, 2016 · 2 comments
Open

Destroy, reload #8

ricnunes opened this issue Feb 17, 2016 · 2 comments

Comments

@ricnunes
Copy link

Hi codrops,

I'm implementing this on a new website and I'm trying to add a filter system to the masonry, but I'm not able to run any of the masonry options, since it's being recreated on AnimeOnScroll.

Any idea on how I can reload the grid, after hiding the filtered cards?

What I was trying to do, but is currently failing:

$li.removeClass('active'); $('#grid').find('.item-'+targetLink).addClass('hidden'); $('#grid').masonry('layout');

Thank you :)

@BDominik
Copy link

Did you solved this problem?

@ricnunes
Copy link
Author

Yes I did. Can't quite remember exactly everything now, but I believe I destroyed and re-created the masonry every time I clicked on a filter option.

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