Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function($) {
- /*-- Portfolio --*/
- if ($('.portfolio-items').length > 0) {
- $container = $('.portfolio-items');
- $container.isotope({filter: '.element'});
- $(window).trigger('resize');
- $('.portfolio-links a').click(function(e){
- e.preventDefault();
- var $this = $(this);
- if ($this.hasClass('active')) {
- return false;
- }
- $this.parents('.portfolio-links').find('.active').removeClass('active');
- $this.parent().addClass('active');
- $this.addClass('active');
- var selector = $this.attr('data-filter');
- $container.isotope( {filter: selector} );
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement