assets/js/script.js
/**
     * @desc Calls a function when element has been scrolled into the view
     * @param {object} element - jQuery object
     * @param {function} func - callback function
     */
@desc Calls a function when element has been scrolled into the view
@param {object} element - jQuery object
@param {function} func - callback function
@desc Calls a function when element has been scrolled into the view @param { object } element - jQuery object @param { function } func - callback function
function lazyInit(element, func) {
      $document
        .on("scroll", function () {
          if (!element.hasClass("lazy-loaded") && isScrolledIntoView(element)) {
            func.call();
            element.addClass("lazy-loaded");
          }
        })
        .trigger("scroll");
    }
function lazyInit ( element , func ) { $document . on ( "scroll" , function ( ) { if ( ! element . hasClass ( "lazy-loaded" ) && isScrolledIntoView ( element ) ) { func . call ( ) ; element . addClass ( "lazy-loaded" ) ; } } ) . trigger ( "scroll" ) ; }
@desc Calls a function when element has been scrolled into the view
 @param {object} element - jQuery object
 @param {function} func - callback function
@desc Calls a function when element has been scrolled into the view @param { object } element - jQuery object @param { function } func - callback function