Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. var $container = $('.portfolio-container');
  2. $container.isotope({
  3. filter: '*',
  4. animationOptions: {
  5. duration: 750,
  6. easing: 'linear',
  7. queue: false
  8. },
  9. layoutMode: 'fitRows',
  10. });
  11.  
  12. $('.portfolio-categories ul li a').click(function(){
  13. $('.portfolio-categories ul li .current').removeClass('current');
  14. $(this).addClass('current');
  15.  
  16. var selector = $(this).attr('data-filter');
  17. $container.isotope({
  18. filter: selector,
  19. layoutMode: 'fitRows',
  20. animationOptions: {
  21. duration: 750,
  22. easing: 'linear',
  23. queue: false
  24. }
  25. });
  26. return false;
  27. });
  28.  
  29. $(window).load(function() {
  30. $container.isotope('reLayout');
  31. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement