Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function portfolio_isotope(){
- //init isotope
- $('.portfolios').isotope({
- itemSelector: '.portfolio-item',
- animationEngine: 'best-available',
- filter: "*"
- });
- if($(window).width() <= 1024 && isResponsive==1) {
- //Set Portfolio Height on Mobile
- var portfolioWidth=$('.portfolio-item').width();
- $('.portfolio-item').css('height',portfolioWidth+'px');
- }
- }
- $(window).load(function(){portfolio_isotope();});
- $(window).resize(function(){portfolio_isotope();});
- $('#filter a').click(function(){
- var selector = $(this).attr('data-filter');
- $('.portfolios').isotope({
- filter: selector
- });
- $(this).parent().attr('class','filter_current');
- $(this).parent().siblings().removeAttr('class');
- return false;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement