AOS.init({ duration: 800, easing: 'slide', once: true }); jQuery(document).ready(function($) { "use strict"; // loader var loader = function() { setTimeout(function() { if($('#loader').length > 0) { $('#loader').removeClass('show'); } }, 1); }; loader(); });