Giter Site home page Giter Site logo

Comments (3)

desandro avatar desandro commented on July 23, 2024

I'm pretty confident all this can be done with Isotope. See #28 for more details on fluid layouts.

Items 1 and 2 are implementation issues that I can take a look if you purchase a Support or Isotope Commercial License

from isotope.

mrangelmarino avatar mrangelmarino commented on July 23, 2024

Commercial License: Purchased. Now haaallp? :D

from isotope.

desandro avatar desandro commented on July 23, 2024

Take a look: http://meta.metafizzy.co/support/marktauriello.com/portfolio.html

Here's the Isotope code:

$(document).ready(function(){

  var $container = $('#content');

  $container.imagesLoaded(function(){
    // bind isotope to window resize
    $(window).smartresize(function(){
      // jQuery has issues with percentage widths
      // so we'll manually calulate it
      var colW = Math.floor( $container.width() * 0.49 );

      $container.isotope({
        resizable: false,
        masonry: {
          columnWidth: colW
        }
      });
      // trigger resize so isotope layout is triggered
    }).smartresize();
  });

  // filter buttons
  $('#filters a').click(function(){
    var selector = $(this).attr('data-filter');
    $container.isotope({ filter: selector });
    return false;
  });

});

Basically, you had the right idea, but some pieces were missing. The trickiest part is seeing that I am first triggering isotope when I call .smartresize() on the $(window). Also note that we're manually calculating the columnWidth.

I had to disable yox view for this demo, as it had a cross-domain request for my own demo. It might be another issue when you enabled it on your side.

If you'd like to follow up but keep this discussion private, please use the email that was provided with the support license.

from isotope.

Related Issues (20)

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.