Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var $container = $('.portfolio-container');
- $container.isotope({
- filter: '*',
- animationOptions: {
- duration: 750,
- easing: 'linear',
- queue: false
- },
- layoutMode: 'fitRows',
- });
- $('.portfolio-categories ul li a').click(function(){
- $('.portfolio-categories ul li .current').removeClass('current');
- $(this).addClass('current');
- var selector = $(this).attr('data-filter');
- $container.isotope({
- filter: selector,
- layoutMode: 'fitRows',
- animationOptions: {
- duration: 750,
- easing: 'linear',
- queue: false
- }
- });
- return false;
- });
- $(window).load(function() {
- $container.isotope('reLayout');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement