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.3 to 0.0.4

LICENSE

6

CHANGELOG.md
# @digitalmoves/blur-vision
## 0.0.4
### Patch Changes
- d38adca: Fix LICENSE
## 0.0.3

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

2

dist/main.js

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

*/
(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()}});
(function(i){typeof define=="function"&&define.amd?define(i):i()})(function(){"use strict";function i(n,e){const t=h();return i=function(x,s){return x=x-179,t[x]},i(n,e)}function h(){const n=["217iTZBBA","4871088RXGceF","3iDsudI","1645340lIvuRL","105738CQOnyF","5840865amjWZT","13578710AajIWU","11DnqbAY","8pRMHcl","478204EmPSLq","643725MiHpdt"];return h=function(){return n},h()}(function(n,e){const t=i,x=n();for(;;)try{if(parseInt(t(182))/1*(-parseInt(t(189))/2)+parseInt(t(179))/3*(-parseInt(t(188))/4)+-parseInt(t(183))/5+parseInt(t(184))/6*(parseInt(t(180))/7)+-parseInt(t(181))/8+parseInt(t(185))/9+parseInt(t(186))/10*(parseInt(t(187))/11)===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(h,468759);const C=(n,e)=>{let t;return(...x)=>{clearTimeout(t),t=setTimeout(()=>{n.apply(void 0,x)},e)}},c=o;function o(n,e){const t=_();return o=function(x,s){return x=x-260,t[x]},o(n,e)}(function(n,e){const t=o,x=n();for(;;)try{if(parseInt(t(270))/1*(parseInt(t(275))/2)+-parseInt(t(260))/3*(-parseInt(t(277))/4)+-parseInt(t(265))/5+-parseInt(t(271))/6*(parseInt(t(281))/7)+parseInt(t(274))/8*(parseInt(t(261))/9)+-parseInt(t(264))/10+parseInt(t(263))/11*(parseInt(t(272))/12)===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(_,616780);function _(){const n=["38901CZuBvJ","9HSFeIh","onResize","66WytXQb","3155210ADdFdW","4714245NHUBvH","previousContainerWidth","getChars","splitText","function","16CAhdpm","7218LrKiWn","705708eNEisC","initResizeObserver","6584096oYqRLz","25716IMaADG","handleResize","176KKMJcg","chars","width","split","448wjUTaS","observe","Invalid text element provided.","textElement","getWords"];return _=function(){return n},_()}class v{constructor(e,t={}){const x=o;if(!e||!(e instanceof HTMLElement))throw new Error(x(283));const{resizeCallback:s,splitTypeTypes:r}=t;this.textElement=e,this[x(262)]=typeof s===x(269)?s:null;const f=r?{types:r}:{};this[x(268)]=new SplitType(this[x(284)],f),this[x(262)]&&this[x(273)]()}initResizeObserver(){const e=o;this[e(266)]=null,new ResizeObserver(C(x=>this[e(276)](x),100))[e(282)](this.textElement)}[c(276)](e){const t=c,[{contentRect:x}]=e,s=Math.floor(x[t(279)]);this.previousContainerWidth&&this[t(266)]!==s&&(this[t(268)][t(280)](),this.onResize()),this[t(266)]=s}getLines(){return this[c(268)].lines}[c(285)](){return this[c(268)].words}[c(267)](){const e=c;return this[e(268)][e(278)]}}function a(n,e){const t=d();return a=function(x,s){return x=x-272,t[x]},a(n,e)}(function(n,e){const t=a,x=n();for(;;)try{if(-parseInt(t(278))/1*(-parseInt(t(283))/2)+parseInt(t(289))/3+-parseInt(t(281))/4+parseInt(t(284))/5*(parseInt(t(280))/6)+parseInt(t(275))/7*(-parseInt(t(287))/8)+parseInt(t(279))/9*(parseInt(t(290))/10)+parseInt(t(295))/11*(parseInt(t(286))/12)===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(d,751751);function d(){const n=["1591990nJdLco","fromTo","24fjqzhq","86224XNHrKt","top bottom-=15%","457041RMHlqg","1000390tpkuzu","blur(0px) brightness(100%)","none","scroll","words, chars","4203529RzUxFH","splitter","blur(10px)","textElement","959hpookj","initializeEffect","filter, opacity","317FjQGjT","45HHELxj","18jsJScl","1048940MXadXj","bottom center+=15%","748EnhHAx"];return d=function(){return n},d()}let S=class{constructor(e){const t=a;if(!e||!(e instanceof HTMLElement))throw new Error("Invalid text element provided.");this.textElement=e,this[t(276)]()}initializeEffect(){const e=a,t=()=>this.scroll();this[e(272)]=new v(this[e(274)],{resizeCallback:t,splitTypeTypes:e(294)}),this[e(293)]()}scroll(){const e=a,t=this[e(272)].getChars();gsap[e(285)](t,{opacity:0,filter:e(273),willChange:e(277)},{ease:e(292),opacity:1,filter:e(291),stagger:.05,scrollTrigger:{trigger:this[e(274)],start:e(288),end:e(282),scrub:!0}})}};const b=l;(function(n,e){const t=l,x=n();for(;;)try{if(-parseInt(t(226))/1+-parseInt(t(232))/2*(parseInt(t(241))/3)+parseInt(t(239))/4+parseInt(t(227))/5*(parseInt(t(237))/6)+parseInt(t(234))/7+parseInt(t(231))/8+-parseInt(t(233))/9===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(I,540912);let z=class{constructor(e){const t=l;if(!e||!(e instanceof HTMLElement))throw new Error(t(244));this[t(235)]=e,this[t(228)]()}[b(228)](){const e=b,t=()=>this[e(230)]();this.splitter=new v(this[e(235)],{resizeCallback:t,splitTypeTypes:e(242)}),this.scroll()}[b(230)](){const e=b,t=this[e(243)][e(225)]();gsap.fromTo(t,{filter:e(238),willChange:e(224)},{ease:e(240),filter:e(236),stagger:.05,scrollTrigger:{trigger:this[e(235)],start:e(229),end:"bottom center+=15%",scrub:!0}})}};function l(n,e){const t=I();return l=function(x,s){return x=x-224,t[x]},l(n,e)}function I(){const n=["4197704ZxuTww","50674GitxHE","1652148XUSYup","5644548ClrqnS","textElement","blur(0px)","6XkXheX","blur(10px)","1570164diGgAc","none","78eksxtX","words, chars","splitter","Invalid text element provided.","filter","getChars","393409cpzIDn","265185kEZvkh","initializeEffect","top bottom-=15%","scroll"];return I=function(){return n},I()}const g=p;function p(n,e){const t=m();return p=function(x,s){return x=x-264,t[x]},p(n,e)}(function(n,e){const t=p,x=n();for(;;)try{if(parseInt(t(278))/1+-parseInt(t(270))/2+parseInt(t(280))/3+-parseInt(t(283))/4+-parseInt(t(271))/5+parseInt(t(268))/6*(parseInt(t(275))/7)+-parseInt(t(264))/8*(-parseInt(t(277))/9)===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(m,317797);class H{constructor(e){const t=p;if(!e||!(e instanceof HTMLElement))throw new Error(t(265));this[t(269)]=e,this[t(267)]()}[g(267)](){const e=g,t=()=>this[e(282)]();this[e(272)]=new v(this[e(269)],{resizeCallback:t,splitTypeTypes:e(279)}),this.scroll()}[g(282)](){const e=g,t=this.splitter[e(281)]();gsap[e(276)](t,{opacity:0,skewX:-20,willChange:e(284),filter:e(273)},{ease:"sine",opacity:1,skewX:0,filter:e(274),stagger:.04,scrollTrigger:{trigger:this[e(269)],start:e(266),end:"bottom center+=15%",scrub:!0}})}}function m(){const n=["blur(8px)","blur(0px)","168581IynWxq","fromTo","81afygAF","613490gOalXt","words","654753bmMQPe","getWords","scroll","2498620dGxLRE","filter, transform","314296HYxoOL","Invalid text element provided.","top bottom-=15%","initializeEffect","90KhiIGt","textElement","1136854rsArob","178450SuVuAv","splitter"];return m=function(){return n},m()}function w(){const n=["ticker","261DeUgcZ","update","46EKeMHg","scroll","15843CetVCC","lagSmoothing","85624idqPoP","815052ttvDjQ","add","2532040qnNnIT","1151766VNvwkX","21745AQnDti","1356EDLqvn","364vSQpFN","raf"];return w=function(){return n},w()}(function(n,e){const t=E,x=n();for(;;)try{if(parseInt(t(402))/1+-parseInt(t(400))/2*(parseInt(t(394))/3)+parseInt(t(395))/4*(-parseInt(t(393))/5)+-parseInt(t(389))/6+parseInt(t(392))/7+parseInt(t(388))/8*(parseInt(t(398))/9)+parseInt(t(391))/10===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(w,201975);function E(n,e){const t=w();return E=function(x,s){return x=x-387,t[x]},E(n,e)}const k=()=>{const n=E,e=new Lenis({lerp:.2});e.on(n(401),ScrollTrigger[n(399)]),gsap[n(397)][n(390)](t=>{e[n(396)](t*1e3)}),gsap[n(397)][n(387)](0)};k();const T=u;function u(n,e){const t=y();return u=function(x,s){return x=x-397,t[x]},u(n,e)}(function(n,e){const t=u,x=n();for(;;)try{if(-parseInt(t(409))/1*(parseInt(t(408))/2)+parseInt(t(413))/3*(parseInt(t(414))/4)+-parseInt(t(406))/5+parseInt(t(398))/6+parseInt(t(402))/7*(parseInt(t(401))/8)+parseInt(t(407))/9+-parseInt(t(405))/10===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(y,679816);function y(){const n=["617732UFJEys","Unable to start reveal text on scroll, missing unblurTextOnScrollElements config.","6143550bCwrmz","effect","addEventListener","390256fWwvWq","35zlgrvp","error","DOMContentLoaded","12523280QNVajB","1504910pKYiiC","7379640vMLgFF","3034uaJnmk","6ZrDyrp","registerPlugin","map","forEach","3bORkJN"];return y=function(){return n},y()}k(),gsap[T(410)](ScrollTrigger),document[T(400)](T(404),()=>{const n=T,e={"effect-1":S,"effect-2":z,"effect-3":H};function t(x){const s=u;x[s(411)](f=>({selector:f.selector,effect:e[f[s(399)]]}))[s(412)](({selector:f,effect:L})=>{const M=s;document.querySelectorAll(f)[M(412)](R=>{new L(R)})})}try{t(unblurTextOnScrollElements)}catch{console[n(403)](n(397))}})});
{
"name": "@digitalmoves/blur-vision",
"private": false,
"version": "0.0.3",
"version": "0.0.4",
"main": "dist/main.js",

@@ -6,0 +6,0 @@ "files": [

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