PluginProbe
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets / 4.1.0
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets v4.1.0
4.5.5 4.5.4 4.2.1 4.2.2 4.2.3 4.5.0 4.5.2 4.5.3 4.2.0 4.1.18 4.1.17 4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.0.9 4.1.0 4.1.1 4.1.2 4.1.3 All 147 releases
ultimate-post-kit / assets / vendor / js / jquery.scrolline.min.js

jquery.scrolline.min.js in Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets 4.1.0, at assets/vendor/js/jquery.scrolline.min.js

1 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 !function(t,i,o,a){t.extend({scrolline:function(a){var r={backColor:"#ecf0f1",direction:"horizontal",frontColor:"#2ecc71",opacity:1,position:"top",reverse:!1,weight:5,zindex:1e3,scrollEnd:function(){}};function e(i){this.params=t.extend(r,i),this.$back=t(o.createElement("div")).addClass("upk-reading-progress-wrap"),this.$front=t(o.createElement("div")),this.init()}e.prototype={init:function(){var o,a,r,e,n,s,p,c,d=this;"vertical"!=d.params.direction&&(d.params.direction="horizontal"),"vertical"==d.params.direction&&"right"!=d.params.position&&(d.params.position="left"),"horizontal"==d.params.direction&&"bottom"!=d.params.position&&(d.params.position="top"),"vertical"==d.params.direction?(r=o=0,"right"==d.params.position?(a=0,e="auto"):(a="auto",e=0)):(a=e=0,"bottom"==d.params.position?(o="auto",r=0):(o=0,r="auto")),d.params.reverse&&!0===d.params.reverse?"vertical"==d.params.direction?(p=s=c=0,n="auto"):(p=s=s=0,c="auto"):(n=c=0,p=s="auto"),d.$front.css({background:d.params.frontColor,bottom:p,height:0,left:c,margin:0,overflow:"hidden",padding:0,position:"absolute",right:s,top:n,width:0,transition:"all 0.3s ease 0s"}).appendTo(d.$back),d.$back.css({background:d.params.backColor,bottom:r,height:0,left:e,opacity:d.params.opacity,margin:0,overflow:"hidden",position:"fixed",padding:0,right:a,top:o,width:0,zIndex:d.params.zindex}).appendTo("body"),t(i).on("load resize scroll orientationchange",(function(){d.scrollListener()}))},scrollListener:function(){var a,r,e,n,s,p,c=this,d=t(i).height(),h=t(i).width(),l=t(o).height(),m=t(i).scrollTop(),g=m/(l-d),u=Math.round(100*g);"vertical"==c.params.direction?(s=(m+d)*d/l,s=u+"%",a=c.params.weight,r=p=d,e=c.params.weight,n=s):(s=(m+d)*h/l,s=u+"%",a=p=h,r=c.params.weight,e=s,n=c.params.weight),c.$back.css({height:r,width:a}),c.$front.css({height:n,width:e}),s>=p&&c.params.scrollEnd()}},new e(a)}})}(jQuery,window,document);