Created
November 13, 2015 17:57
-
-
Save bulbul84/bd054c4c2a1ad2c8838d to your computer and use it in GitHub Desktop.
How to use or solve isotop hidden problem or not showing issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* write isotop jquery script on your .html page and use $(window).load(function () {}); function like below */ | |
<script> | |
$(window).load(function () { | |
// our lasest project | |
$('.grid').isotope({ | |
itemSelector: '.grid-item', | |
percentPosition: true, | |
masonry: { | |
columnWidth: 3, | |
gutter: 30 | |
} | |
}); | |
$('ul.filter li').click(function(){ | |
$("ul.filter li").removeClass("active"); | |
$(this).addClass("active"); | |
var selector = $(this).attr('data-filter'); | |
$(".grid").isotope({ | |
filter: selector, | |
animationOptions: { | |
duration: 750, | |
easing: 'linear', | |
queue: false, | |
} | |
}); | |
return false; | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment