RexyBadDog

fxp_2020_10_18_AngularJS_03

Oct 18th, 2020
681
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   // Porfolio isotope and filter
  2.   $(window).on('load', function() {
  3.     var portfolioIsotope = $('.portfolio-container').isotope({
  4.       itemSelector: '.portfolio-item',
  5.       layoutMode: 'fitRows'
  6.     });
  7.  
  8.     $('#portfolio-flters li').on('click', function() {
  9.       $("#portfolio-flters li").removeClass('filter-active');
  10.       $(this).addClass('filter-active');
  11.  
  12.       portfolioIsotope.isotope({
  13.         filter: $(this).data('filter')
  14.       });
  15.       aos_init();
  16.     });
  17.  
  18.     // Initiate venobox (lightbox javaScript feature used in portofilo)
  19.     $(document).ready(function() {
  20.       $('.venobox').venobox();
  21.     });
  22.   });
RAW Paste Data