Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@digitalmoves/blur-vision

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digitalmoves/blur-vision - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

6

CHANGELOG.md
# @digitalmoves/blur-vision
## 0.0.3
### Patch Changes
- 0a25bcc: Improve package.json
## 0.0.2

@@ -4,0 +10,0 @@

2

dist/main.js

@@ -24,2 +24,2 @@ /*

*/
(function(a){typeof define=="function"&&define.amd?define(a):a()})(function(){"use strict";(function(n,e){const t=a,x=n();for(;;)try{if(-parseInt(t(373))/1*(parseInt(t(377))/2)+-parseInt(t(385))/3*(parseInt(t(374))/4)+parseInt(t(380))/5*(-parseInt(t(379))/6)+-parseInt(t(375))/7*(-parseInt(t(381))/8)+parseInt(t(383))/9*(-parseInt(t(384))/10)+-parseInt(t(386))/11+-parseInt(t(376))/12*(-parseInt(t(378))/13)===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(u,905748);function a(n,e){const t=u();return a=function(x,s){return x=x-373,t[x]},a(n,e)}const z=(n,e)=>{let t;return(...x)=>{clearTimeout(t),t=setTimeout(()=>{n[a(382)](void 0,x)},e)}};function u(){const n=["3912tvOQCR","28UcjXes","67093zKukIB","841332AuDAan","10UVSiCu","10696KKNfLZ","apply","2925531slTtDU","10gIsAJf","3mFVPBW","10693507AeacoL","2927GTDVfv","2563412CmJjNW","7763MgKopS"];return u=function(){return n},u()}function h(){const n=["lines","141AhkyHW","words","previousContainerWidth","769308wjgOZj","getChars","7474071OPhqXN","initResizeObserver","10vITykh","split","floor","function","getLines","13588WuhjAF","observe","384SydlKE","onResize","chars","10eOgMBt","width","textElement","handleResize","2997LevvPm","splitText","4019wpqUcV","2766792CioTlP","getWords","4529700eYLHAq","8088sRqHDk","Invalid text element provided."];return h=function(){return n},h()}const c=f;(function(n,e){const t=f,x=n();for(;;)try{if(-parseInt(t(134))/1*(-parseInt(t(125))/2)+parseInt(t(141))/3*(parseInt(t(123))/4)+-parseInt(t(118))/5*(parseInt(t(144))/6)+parseInt(t(135))/7+parseInt(t(138))/8*(-parseInt(t(132))/9)+parseInt(t(128))/10*(-parseInt(t(116))/11)+parseInt(t(137))/12===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(h,431478);function f(n,e){const t=h();return f=function(x,s){return x=x-116,t[x]},f(n,e)}class w{constructor(e,t={}){const x=f;if(!e||!(e instanceof HTMLElement))throw new Error(x(139));const{resizeCallback:s,splitTypeTypes:r}=t;this[x(130)]=e,this[x(126)]=typeof s===x(121)?s:null;const o=r?{types:r}:{};this[x(133)]=new SplitType(this.textElement,o),this[x(126)]&&this[x(117)]()}[c(117)](){const e=c;this[e(143)]=null,new ResizeObserver(z(x=>this[e(131)](x),100))[e(124)](this[e(130)])}handleResize(e){const t=c,[{contentRect:x}]=e,s=Math[t(120)](x[t(129)]);this[t(143)]&&this[t(143)]!==s&&(this[t(133)][t(119)](),this[t(126)]()),this[t(143)]=s}[c(122)](){const e=c;return this[e(133)][e(140)]}[c(136)](){const e=c;return this[e(133)][e(142)]}[c(145)](){const e=c;return this[e(133)][e(127)]}}function d(){const n=["1219307vVZldB","Invalid text element provided.","10911288STVQNt","scroll","blur(10px)","3458164nAuwIH","blur(0px) brightness(100%)","604215beEgMr","getChars","1506jKvSJR","91392mEJVbQ","none","initializeEffect","textElement","3dURxEE","447029QETVvE","17475OrzZaj","2rvSWHU","splitter","fromTo","filter, opacity","7hxmzxP","60VRkpbK","2587lNIMEy"];return d=function(){return n},d()}const T=l;function l(n,e){const t=d();return l=function(x,s){return x=x-377,t[x]},l(n,e)}(function(n,e){const t=l,x=n();for(;;)try{if(-parseInt(t(379))/1*(-parseInt(t(396))/2)+parseInt(t(393))/3*(parseInt(t(384))/4)+parseInt(t(395))/5*(-parseInt(t(388))/6)+-parseInt(t(400))/7*(-parseInt(t(381))/8)+-parseInt(t(386))/9+parseInt(t(377))/10*(-parseInt(t(394))/11)+-parseInt(t(389))/12*(parseInt(t(378))/13)===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(d,743961);let R=class{constructor(e){const t=l;if(!e||!(e instanceof HTMLElement))throw new Error(t(380));this[t(392)]=e,this[t(391)]()}[T(391)](){const e=T,t=()=>this.scroll();this[e(397)]=new w(this.textElement,{resizeCallback:t,splitTypeTypes:"words, chars"}),this[e(382)]()}scroll(){const e=T,t=this[e(397)][e(387)]();gsap[e(398)](t,{opacity:0,filter:e(383),willChange:e(399)},{ease:e(390),opacity:1,filter:e(385),stagger:.05,scrollTrigger:{trigger:this.textElement,start:"top bottom-=15%",end:"bottom center+=15%",scrub:!0}})}};const _=I;function b(){const n=["8XfugWS","8790820PStgkt","initializeEffect","5465MpVKCF","none","fromTo","getChars","words, chars","textElement","12291219ihjvGb","scroll","1eaqbOL","9558402kCehjp","10904880WxrfVA","1496658sJNhWD","242982wexytM","blur(10px)","6128CLKyZG","bottom center+=15%","splitter"];return b=function(){return n},b()}function I(n,e){const t=b();return I=function(x,s){return x=x-387,t[x]},I(n,e)}(function(n,e){const t=I,x=n();for(;;)try{if(parseInt(t(394))/1*(-parseInt(t(397))/2)+parseInt(t(398))/3+-parseInt(t(400))/4*(-parseInt(t(406))/5)+parseInt(t(396))/6+-parseInt(t(395))/7+-parseInt(t(403))/8*(parseInt(t(392))/9)+parseInt(t(404))/10===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(b,972526);let W=class{constructor(e){if(!e||!(e instanceof HTMLElement))throw new Error("Invalid text element provided.");this.textElement=e,this.initializeEffect()}[_(405)](){const e=_,t=()=>this[e(393)]();this[e(402)]=new w(this.textElement,{resizeCallback:t,splitTypeTypes:e(390)}),this.scroll()}[_(393)](){const e=_,t=this[e(402)][e(389)]();gsap[e(388)](t,{filter:e(399),willChange:"filter"},{ease:e(387),filter:"blur(0px)",stagger:.05,scrollTrigger:{trigger:this[e(391)],start:"top bottom-=15%",end:e(401),scrub:!0}})}};function g(){const n=["2yNiFUd","4957996unLYSV","26494serjep","blur(0px)","splitter","initializeEffect","225110soOkBA","6VDMlWO","1561675OWQJdy","textElement","getWords","549BnBnRX","11531146dnNagR","fromTo","sine","bottom center+=15%","words","16752XaxVAP","747953unRbea","8GvJHfS","blur(8px)","scroll","6860357NtDFlj","filter, transform","3DjrcYr","Invalid text element provided."];return g=function(){return n},g()}const S=i;function i(n,e){const t=g();return i=function(x,s){return x=x-157,t[x]},i(n,e)}(function(n,e){const t=i,x=n();for(;;)try{if(-parseInt(t(159))/1*(parseInt(t(167))/2)+-parseInt(t(165))/3*(-parseInt(t(168))/4)+parseInt(t(175))/5*(-parseInt(t(174))/6)+-parseInt(t(163))/7*(-parseInt(t(160))/8)+parseInt(t(178))/9*(parseInt(t(173))/10)+parseInt(t(179))/11+parseInt(t(158))/12*(-parseInt(t(169))/13)===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(g,735671);class M{constructor(e){const t=i;if(!e||!(e instanceof HTMLElement))throw new Error(t(166));this[t(176)]=e,this[t(172)]()}initializeEffect(){const e=i,t=()=>this[e(162)]();this.splitter=new w(this[e(176)],{resizeCallback:t,splitTypeTypes:e(157)}),this[e(162)]()}[S(162)](){const e=S,t=this[e(171)][e(177)]();gsap[e(180)](t,{opacity:0,skewX:-20,willChange:e(164),filter:e(161)},{ease:e(181),opacity:1,skewX:0,filter:e(170),stagger:.04,scrollTrigger:{trigger:this[e(176)],start:"top bottom-=15%",end:e(182),scrub:!0}})}}(function(n,e){const t=m,x=n();for(;;)try{if(-parseInt(t(464))/1+-parseInt(t(461))/2*(-parseInt(t(457))/3)+-parseInt(t(462))/4+parseInt(t(460))/5+parseInt(t(463))/6+-parseInt(t(465))/7*(-parseInt(t(466))/8)+-parseInt(t(456))/9===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(E,964732);function m(n,e){const t=E();return m=function(x,s){return x=x-456,t[x]},m(n,e)}const k=()=>{const n=m,e=new Lenis({lerp:.2});e.on("scroll",ScrollTrigger.update),gsap[n(458)][n(459)](t=>{e[n(467)](t*1e3)}),gsap[n(458)][n(468)](0)};k();function E(){const n=["ticker","add","7377555AvzoIq","9544RsIrty","2718188xyOWFg","2671398cPCzST","1921987PBjwZR","49ihMnzg","302376rBxdlR","raf","lagSmoothing","4407129aMCDeh","1176NjDaxK"];return E=function(){return n},E()}const v=p;(function(n,e){const t=p,x=n();for(;;)try{if(parseInt(t(367))/1+-parseInt(t(368))/2+parseInt(t(379))/3*(parseInt(t(373))/4)+parseInt(t(377))/5*(-parseInt(t(369))/6)+-parseInt(t(374))/7*(-parseInt(t(376))/8)+-parseInt(t(360))/9*(-parseInt(t(375))/10)+-parseInt(t(361))/11===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(y,926713);function y(){const n=["error","querySelectorAll","6904HUnmWf","97181seyvZX","170kCRQzC","568iqWEwE","10UQIFYr","selector","2001ONykIY","888669NAmNWy","32138722QeUohT","DOMContentLoaded","registerPlugin","map","Unable to start reveal text on scroll, missing unblurTextOnScrollElements config.","forEach","1501544IIKQlh","1808438mEneJM","1693326FBUqHx","effect"];return y=function(){return n},y()}function p(n,e){const t=y();return p=function(x,s){return x=x-360,t[x]},p(n,e)}k(),gsap[v(363)](ScrollTrigger),document.addEventListener(v(362),()=>{const n=v,e={"effect-1":R,"effect-2":W,"effect-3":M};function t(x){const s=p;x[s(364)](o=>({selector:o[s(378)],effect:e[o[s(370)]]}))[s(366)](({selector:o,effect:O})=>{const C=s;document[C(372)](o)[C(366)](B=>{new O(B)})})}try{t(unblurTextOnScrollElements)}catch{console[n(371)](n(365))}})});
(function(c){typeof define=="function"&&define.amd?define(c):c()})(function(){"use strict";function c(){const n=["16rxnOmr","4844691WLGdyk","12itgTSD","3319890ndeikl","apply","11KckAgd","46520ADSqnZ","873201SXRqMz","93sNdaym","209887IqSmhP","1276060bhusxz","17702628AiEGIX","10FPzqZD"];return c=function(){return n},c()}function h(n,e){const t=c();return h=function(x,s){return x=x-329,t[x]},h(n,e)}(function(n,e){const t=h,x=n();for(;;)try{if(parseInt(t(336))/1*(parseInt(t(339))/2)+-parseInt(t(335))/3*(parseInt(t(333))/4)+parseInt(t(337))/5*(parseInt(t(329))/6)+parseInt(t(334))/7+-parseInt(t(340))/8*(-parseInt(t(341))/9)+-parseInt(t(330))/10+-parseInt(t(332))/11*(parseInt(t(338))/12)===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(c,593462);const C=(n,e)=>{let t;return(...x)=>{clearTimeout(t),t=setTimeout(()=>{n[h(331)](void 0,x)},e)}};function f(n,e){const t=_();return f=function(x,s){return x=x-363,t[x]},f(n,e)}function _(){const n=["3307062iioLUh","Invalid text element provided.","138raeWtO","observe","11010ESFhRc","splitText","10062360kKPbtk","split","8991689zNnhuN","floor","1714968ivNmod","544012BuCcEr","handleResize","lines","previousContainerWidth","initResizeObserver","onResize","function","15fVxhzl","textElement","getWords","words","976148ZYrCli"];return _=function(){return n},_()}const i=f;(function(n,e){const t=f,x=n();for(;;)try{if(parseInt(t(384))/1+parseInt(t(366))/2*(-parseInt(t(364))/3)+-parseInt(t(373))/4*(-parseInt(t(380))/5)+-parseInt(t(385))/6+-parseInt(t(370))/7+parseInt(t(368))/8+parseInt(t(372))/9===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(_,743570);class z{constructor(e,t={}){const x=f;if(!e||!(e instanceof HTMLElement))throw new Error(x(363));const{resizeCallback:s,splitTypeTypes:r}=t;this[x(381)]=e,this[x(378)]=typeof s===x(379)?s:null;const o=r?{types:r}:{};this[x(367)]=new SplitType(this[x(381)],o),this.onResize&&this[x(377)]()}[i(377)](){const e=i;this.previousContainerWidth=null,new ResizeObserver(C(x=>this[e(374)](x),100))[e(365)](this[e(381)])}handleResize(e){const t=i,[{contentRect:x}]=e,s=Math[t(371)](x.width);this.previousContainerWidth&&this[t(376)]!==s&&(this[t(367)][t(369)](),this.onResize()),this.previousContainerWidth=s}getLines(){const e=i;return this.splitText[e(375)]}[i(382)](){const e=i;return this[e(367)][e(383)]}getChars(){return this.splitText.chars}}function a(n,e){const t=b();return a=function(x,s){return x=x-333,t[x]},a(n,e)}const v=a;(function(n,e){const t=a,x=n();for(;;)try{if(parseInt(t(353))/1*(parseInt(t(336))/2)+parseInt(t(340))/3*(parseInt(t(350))/4)+parseInt(t(345))/5+-parseInt(t(342))/6*(parseInt(t(354))/7)+-parseInt(t(352))/8*(-parseInt(t(337))/9)+-parseInt(t(346))/10+parseInt(t(333))/11*(parseInt(t(351))/12)===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(b,874985);function b(){const n=["none","6NZHEsi","splitter","6GpmIvY","words, chars","Invalid text element provided.","1712745qGnlQI","8957580kHbcdc","top bottom-=15%","getChars","textElement","641908yaiYfm","10668888xIczBf","1105936wZDKId","8783ylxiJA","8307271aCVuBt","11trHNla","blur(10px)","fromTo","194UdiQha","36uHXuXm","scroll"];return b=function(){return n},b()}let W=class{constructor(e){const t=a;if(!e||!(e instanceof HTMLElement))throw new Error(t(344));this[t(349)]=e,this.initializeEffect()}initializeEffect(){const e=a,t=()=>this.scroll();this[e(341)]=new z(this.textElement,{resizeCallback:t,splitTypeTypes:e(343)}),this[e(338)]()}[v(338)](){const e=v,t=this[e(341)][e(348)]();gsap[e(335)](t,{opacity:0,filter:e(334),willChange:"filter, opacity"},{ease:e(339),opacity:1,filter:"blur(0px) brightness(100%)",stagger:.05,scrollTrigger:{trigger:this[e(349)],start:e(347),end:"bottom center+=15%",scrub:!0}})}};function l(n,e){const t=I();return l=function(x,s){return x=x-271,t[x]},l(n,e)}const d=l;(function(n,e){const t=l,x=n();for(;;)try{if(-parseInt(t(290))/1+-parseInt(t(279))/2+parseInt(t(291))/3+-parseInt(t(275))/4*(-parseInt(t(289))/5)+parseInt(t(287))/6*(-parseInt(t(283))/7)+parseInt(t(272))/8+-parseInt(t(282))/9*(-parseInt(t(273))/10)===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(I,896292);function I(){const n=["1072392pVFfLR","97010hzRlvz","top bottom-=15%","1536372WFTxAw","filter","textElement","fromTo","2836744lsEnuX","none","blur(0px)","2997fIxwWe","7zmCrLl","initializeEffect","words, chars","scroll","3632406tLJYsp","getChars","5gnjxBD","1718113zvLhER","2668809iZKYYB","splitter","bottom center+=15%"];return I=function(){return n},I()}let H=class{constructor(e){const t=l;if(!e||!(e instanceof HTMLElement))throw new Error("Invalid text element provided.");this[t(277)]=e,this[t(284)]()}[d(284)](){const e=d,t=()=>this[e(286)]();this[e(292)]=new z(this.textElement,{resizeCallback:t,splitTypeTypes:e(285)}),this[e(286)]()}[d(286)](){const e=d,t=this[e(292)][e(288)]();gsap[e(278)](t,{filter:"blur(10px)",willChange:e(276)},{ease:e(280),filter:e(281),stagger:.05,scrollTrigger:{trigger:this.textElement,start:e(274),end:e(271),scrub:!0}})}};const g=p;(function(n,e){const t=p,x=n();for(;;)try{if(-parseInt(t(512))/1*(-parseInt(t(505))/2)+parseInt(t(510))/3*(-parseInt(t(515))/4)+parseInt(t(514))/5+parseInt(t(517))/6*(parseInt(t(507))/7)+-parseInt(t(498))/8+parseInt(t(496))/9+-parseInt(t(508))/10===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(m,428107);function p(n,e){const t=m();return p=function(x,s){return x=x-495,t[x]},p(n,e)}class L{constructor(e){const t=p;if(!e||!(e instanceof HTMLElement))throw new Error(t(499));this[t(506)]=e,this[t(497)]()}[g(497)](){const e=g,t=()=>this[e(504)]();this[e(509)]=new z(this[e(506)],{resizeCallback:t,splitTypeTypes:e(501)}),this[e(504)]()}[g(504)](){const e=g,t=this[e(509)][e(502)]();gsap[e(511)](t,{opacity:0,skewX:-20,willChange:"filter, transform",filter:e(495)},{ease:e(503),opacity:1,skewX:0,filter:e(516),stagger:.04,scrollTrigger:{trigger:this.textElement,start:e(500),end:e(513),scrub:!0}})}}function m(){const n=["1317018QSXbSV","blur(8px)","5470533ewtAJN","initializeEffect","985184bMgMNv","Invalid text element provided.","top bottom-=15%","words","getWords","sine","scroll","22nOMuGv","textElement","7BPVbOy","9332750wJVevX","splitter","2847taGiHX","fromTo","58619jXKPGE","bottom center+=15%","99865WzTvKD","32ZDDuuY","blur(0px)"];return m=function(){return n},m()}(function(n,e){const t=E,x=n();for(;;)try{if(parseInt(t(333))/1*(parseInt(t(334))/2)+-parseInt(t(340))/3+parseInt(t(338))/4+parseInt(t(335))/5+-parseInt(t(330))/6*(-parseInt(t(341))/7)+parseInt(t(339))/8*(parseInt(t(329))/9)+-parseInt(t(331))/10===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(w,659665);function w(){const n=["scroll","36fWIflr","498IUXDPg","34868540wdQlaM","add","6oEtsHM","302762ZpKxHH","3183900utjczZ","lagSmoothing","update","3817568WwQmfW","1758968dKFYGs","833673CUlzOR","88172Gjsees","ticker"];return w=function(){return n},w()}const k=()=>{const n=E,e=new Lenis({lerp:.2});e.on(n(328),ScrollTrigger[n(337)]),gsap.ticker[n(332)](t=>{e.raf(t*1e3)}),gsap[n(327)][n(336)](0)};function E(n,e){const t=w();return E=function(x,s){return x=x-327,t[x]},E(n,e)}k();const T=u;function u(n,e){const t=y();return u=function(x,s){return x=x-117,t[x]},u(n,e)}(function(n,e){const t=u,x=n();for(;;)try{if(-parseInt(t(118))/1*(-parseInt(t(138))/2)+-parseInt(t(132))/3*(parseInt(t(121))/4)+parseInt(t(119))/5+-parseInt(t(135))/6*(parseInt(t(134))/7)+parseInt(t(131))/8*(parseInt(t(122))/9)+parseInt(t(125))/10*(-parseInt(t(137))/11)+parseInt(t(128))/12*(parseInt(t(124))/13)===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(y,992698),k(),gsap[T(120)](ScrollTrigger),document[T(117)](T(123),()=>{const n=T,e={"effect-1":W,"effect-2":H,"effect-3":L};function t(x){const s=u;x.map(o=>({selector:o[s(130)],effect:e[o[s(127)]]}))[s(133)](({selector:o,effect:M})=>{const S=s;document[S(126)](o)[S(133)](R=>{new M(R)})})}try{t(unblurTextOnScrollElements)}catch{console[n(136)](n(129))}});function y(){const n=["error","77tHnxgN","2MaUuBt","addEventListener","1209258TUFQoO","3476815ImxbOz","registerPlugin","236WMlyer","9VASAKB","DOMContentLoaded","9153534slgwxX","2169340cwWHvJ","querySelectorAll","effect","60UHoyQZ","Unable to start reveal text on scroll, missing unblurTextOnScrollElements config.","selector","3142848jWMYjE","81897HtRcVZ","forEach","7EkkAXj","10177140YLTwPp"];return y=function(){return n},y()}});
{
"name": "@digitalmoves/blur-vision",
"private": false,
"version": "0.0.2",
"version": "0.0.3",
"main": "dist/main.js",

@@ -13,2 +13,6 @@ "files": [

"license": "UNLICENSED",
"author": {
"name": "Harley"
},
"homepage": "https://digitalmoves.com.au/plugins/p/blurvision",
"devDependencies": {},

@@ -15,0 +19,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc