# ultimate-post-kit/4.5.6/assets/js/widgets/upk-static-social-count.min.js

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

- Page: https://pluginprobe.com/plugins/ultimate-post-kit/4.5.6/code/assets/js/widgets/upk-static-social-count.min.js
- Raw: https://pluginprobe.com/plugins/ultimate-post-kit/4.5.6/raw/assets/js/widgets/upk-static-social-count.min.js
- Modified: 2026-10-06T08:37:16+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.5.6/code/assets/js/widgets/upk-static-social-count.min.js#L10-L20`.

```javascript
!function(e){e(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/upk-static-social-count.default",(function(t){t.find(".upk-static-social-count").each((function(){var t=e(this)[0],n=e(t).find(".counter-value");t&&e(n).each((function(){var t=e(this);jQuery({Counter:0}).animate({Counter:t.text()},{duration:3e3,easing:"swing",step:function(){t.text(function(e){if((e=e.toString().replace(/[^0-9.]/g,""))<=999)return Math.ceil(e);let t,n=[{v:1e3,s:"K"},{v:1e6,s:"M"},{v:1e9,s:"B"},{v:1e12,s:"T"},{v:1e15,s:"P"},{v:1e18,s:"E"}];for(t=n.length-1;t>0&&!(e>=n[t].v);t--);return(e/n[t].v).toFixed(2).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+n[t].s}(this.Counter))}})}))}))}))}))}(jQuery);
```
