golden hour
/var/www/html/wp-content/plugins/Ultimate_VC_Addons/woocomposer/assets/js
⬆️ Go Up
Upload
File/Folder
Size
Actions
admin.js
444 B
Del
OK
custom.js
13.11 KB
Del
OK
slick.js
45.43 KB
Del
OK
unveil.js
716 B
Del
OK
woocomposer.min.js
32.09 KB
Del
OK
Edit: unveil.js
;(function($){$.fn.unveil=function(threshold,callback){var $w=$(window),th=threshold||0,retina=window.devicePixelRatio>1,attrib=retina?"data-src-retina":"data-src",images=this,loaded;this.one("unveil",function(){var source=this.getAttribute(attrib);source=source||this.getAttribute("data-src");if(source){this.setAttribute("src",source);if(typeof callback==="function")callback.call(this);}});function unveil(){var inview=images.filter(function(){var $e=$(this),wt=$w.scrollTop(),wb=wt+$w.height(),et=$e.offset().top,eb=et+$e.height();return eb>=wt-th&&et<=wb+th;});loaded=inview.trigger("unveil");images=images.not(loaded);}$w.scroll(unveil);$w.resize(unveil);unveil();return this;};})(window.jQuery||window.Zepto);
Save