Coder Social home page Coder Social logo

dynamick / multiple-filter-masonry Goto Github PK

View Code? Open in Web Editor NEW
40.0 40.0 13.0 114 KB

This script extend the great Desandro Masonry plugin adding the ability to filter elements using multiple filter (checkbox)

Home Page: http://dynamick.github.io/multiple-filter-masonry/

JavaScript 100.00%

multiple-filter-masonry's People

Contributors

dynamick avatar jakob-stoeck avatar kostasxyz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

multiple-filter-masonry's Issues

Filtering (filter change functions) does not always rebuild masonry

Symptons

Items do not take up full width of the column

Cause

Reload functions misses the masonry options;

var reload = function($container,items){      
      $container.empty();
      $(items).each(function(){
        $($container).append($(this));
      });
      $container.masonry('reloadItems');
      $container.masonry();
    };

Fix

Last line should be:

$container.masonry();

Stamp

Hi, how can I prevent remove "stamp" item after filtering?

Masonry options with element sizing do not work

Hello,
i used this script and it works fine as long as i set the masonry options for column and gutter width like:

...

columnWidth: 240, 
gutter: 10, 

...

When i try to set these with the masonry element sizing (e.g. css classes) like:

columnWidth: '.grid-sizer',
gutter: '.gutter-sizer',

for

<div class="grid">
  <div class="grid-sizer"></div>
  <div class="gutter-sizer"></div>

  <div class="grid-item"></div>
  <div class="grid-item"></div>
  ...
</div>

it does not work. The filtering is OK - but with no height of the container at all?

Maybe you have a solution?
Thanks
Frank

Destroy others functions.

The filter for me works well, but after clicking on one filter it destroy any function added to the masonry items.

Example: Simple JQuery Click, Magnific Popup...

My "non" solution has to fire the functions again to the masonry items in yours //reload masonry.

Any tip to make this script better?

elements cover each other

sometimes the photo will cover a half of the other photo. However, after I refresh the page, everything returns to be normal. I wonder if there is a way to solve this. Thank you!

Use UL list for filtering and added hashtags

I see there was a recent merge 'Use UL list for filtering and added hashtags' what does the html source code look like for this?

I'm trying to use hash to filter, suign the latest js just gives #undefined in the url and no results back when I click one of the filter buttons

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.