# ultimate-post-kit/4.1.10/assets/vendor/js/jquery.scrolline.min.js

Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider &amp; Blog Layout Widgets, version 4.1.10. 1 lines.

- Page: https://pluginprobe.com/plugins/ultimate-post-kit/4.1.10/code/assets/vendor/js/jquery.scrolline.min.js
- Raw: https://pluginprobe.com/plugins/ultimate-post-kit/4.1.10/raw/assets/vendor/js/jquery.scrolline.min.js
- Modified: 2026-05-21T10:33:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ultimate-post-kit/4.1.10/code/assets/vendor/js/jquery.scrolline.min.js#L10-L20`.

```javascript
!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);
```
