Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Filtering masonry items with jQuery

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #208223
    treeves93
    Participant

    Hi all,

    Firstly this is my first post here so please be kind! (Also, apologies if what I’m saying isn’t clear enough.)

    OK, so I have a template that generates tiles via a masonry script, and there’s a lot of it. I’ve put it in Codepen seen here: (http://codepen.io/anon/pen/rOxXwZ). The HTML is just the container and where each item is generated.

    Basically, I’m trying to filter each item with jQuery by class. The script for the filter can be seen here: (http://codepen.io/anon/pen/GpoVMq).

    The filter works, however the tiles don’t reshuffle. The issue I’m having is that I don’t know how to call the masonry script in the first codepen.

    Does anyone have any ideas how to reshuffle the tiles? I know this is probably a bit ambiguous or vague, I would just like to know if it’s possible to call the masonry script provided once filtered etc.

    Thanks in advance!

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.