@digitalmoves/blur-vision
Advanced tools
Comparing version 0.0.1 to 0.0.2
# @digitalmoves/blur-vision | ||
## 0.0.2 | ||
### Patch Changes | ||
- 470344d: Fix README | ||
## 0.0.1 | ||
@@ -4,0 +10,0 @@ |
@@ -24,2 +24,2 @@ /* | ||
*/ | ||
(function(a){typeof define=="function"&&define.amd?define(a):a()})(function(){"use strict";function a(){const n=["5458772BjtSbk","89994tJQtHG","7eqqAtA","641574fkihce","303372gqCuKl","279zriQFd","287695sfMrjV","81010SuRbMv","4mSKxvQ","3914392ZqeSUt","28ziwiEf"];return a=function(){return n},a()}function T(n,e){const t=a();return T=function(x,s){return x=x-431,t[x]},T(n,e)}(function(n,e){const t=T,x=n();for(;;)try{if(parseInt(t(436))/1*(-parseInt(t(432))/2)+-parseInt(t(438))/3+-parseInt(t(434))/4*(-parseInt(t(441))/5)+parseInt(t(439))/6+-parseInt(t(437))/7*(parseInt(t(433))/8)+-parseInt(t(440))/9*(-parseInt(t(431))/10)+parseInt(t(435))/11===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(a,317573);const z=(n,e)=>{let t;return(...x)=>{clearTimeout(t),t=setTimeout(()=>{n.apply(void 0,x)},e)}},c=o;(function(n,e){const t=o,x=n();for(;;)try{if(-parseInt(t(475))/1+parseInt(t(459))/2*(parseInt(t(463))/3)+-parseInt(t(477))/4+parseInt(t(465))/5*(-parseInt(t(470))/6)+parseInt(t(462))/7*(parseInt(t(472))/8)+-parseInt(t(473))/9+parseInt(t(468))/10===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(u,147997);class S{constructor(e,t={}){const x=o;if(!e||!(e instanceof HTMLElement))throw new Error(x(474));const{resizeCallback:s,splitTypeTypes:r}=t;this.textElement=e,this[x(455)]=typeof s===x(467)?s:null;const i=r?{types:r}:{};this.splitText=new SplitType(this.textElement,i),this[x(455)]&&this[x(469)]()}[c(469)](){const e=c;this[e(460)]=null,new ResizeObserver(z(x=>this[e(456)](x),100))[e(461)](this.textElement)}[c(456)](e){const t=c,[{contentRect:x}]=e,s=Math.floor(x.width);this[t(460)]&&this[t(460)]!==s&&(this[t(458)][t(478)](),this[t(455)]()),this[t(460)]=s}[c(476)](){const e=c;return this[e(458)][e(464)]}[c(471)](){return this.splitText.words}[c(466)](){const e=c;return this[e(458)][e(457)]}}function o(n,e){const t=u();return o=function(x,s){return x=x-455,t[x]},o(n,e)}function u(){const n=["Invalid text element provided.","379prYIRm","getLines","1059004KrtrnP","split","onResize","handleResize","chars","splitText","89948FLqOvl","previousContainerWidth","observe","5824CChgSm","9BSiTFs","lines","3530ajYUVG","getChars","function","2580520cHocmL","initResizeObserver","894uplccT","getWords","2608GdYtzb","1312965QowFhI"];return u=function(){return n},u()}const h=f;(function(n,e){const t=f,x=n();for(;;)try{if(parseInt(t(390))/1+parseInt(t(381))/2*(-parseInt(t(378))/3)+-parseInt(t(376))/4+-parseInt(t(382))/5*(parseInt(t(391))/6)+-parseInt(t(385))/7*(-parseInt(t(383))/8)+-parseInt(t(386))/9+parseInt(t(380))/10===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(d,284276);function f(n,e){const t=d();return f=function(x,s){return x=x-376,t[x]},f(n,e)}let M=class{constructor(e){const t=f;if(!e||!(e instanceof HTMLElement))throw new Error(t(394));this[t(387)]=e,this[t(379)]()}[h(379)](){const e=h,t=()=>this[e(388)]();this.splitter=new S(this[e(387)],{resizeCallback:t,splitTypeTypes:e(384)}),this.scroll()}[h(388)](){const e=h,t=this[e(397)][e(393)]();gsap[e(377)](t,{opacity:0,filter:e(392),willChange:e(389)},{ease:e(395),opacity:1,filter:"blur(0px) brightness(100%)",stagger:.05,scrollTrigger:{trigger:this[e(387)],start:e(396),end:"bottom center+=15%",scrub:!0}})}};function d(){const n=["555185JHNZEA","282NxjAhm","blur(10px)","getChars","Invalid text element provided.","none","top bottom-=15%","splitter","1537724wHGahB","fromTo","320781RcGyGR","initializeEffect","6333590vdtKNk","2XQTnuf","53495uhvMbY","8CxrAMD","words, chars","2934526WUVAAF","2963475FqHLwb","textElement","scroll","filter, opacity"];return d=function(){return n},d()}function l(n,e){const t=I();return l=function(x,s){return x=x-266,t[x]},l(n,e)}const _=l;function I(){const n=["splitter","10016274lKVxYM","top bottom-=15%","10XhnLbs","72IyZqAV","27504LPopwI","4cEdxGy","getChars","Invalid text element provided.","732447HuKEXM","12235454wxVydw","none","780nLRFvy","scroll","5LppyIQ","1048439SwcrKL","2dwZbca","bottom center+=15%","textElement","blur(0px)","1140915abclcE","initializeEffect","13868037MjznfW","blur(10px)","filter"];return I=function(){return n},I()}(function(n,e){const t=l,x=n();for(;;)try{if(-parseInt(t(266))/1*(-parseInt(t(273))/2)+parseInt(t(277))/3*(-parseInt(t(288))/4)+parseInt(t(271))/5*(parseInt(t(283))/6)+parseInt(t(272))/7*(parseInt(t(286))/8)+parseInt(t(279))/9*(-parseInt(t(285))/10)+-parseInt(t(267))/11+parseInt(t(287))/12*(parseInt(t(269))/13)===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(I,853827);let L=class{constructor(e){const t=l;if(!e||!(e instanceof HTMLElement))throw new Error(t(290));this[t(275)]=e,this.initializeEffect()}[_(278)](){const e=_,t=()=>this.scroll();this[e(282)]=new S(this.textElement,{resizeCallback:t,splitTypeTypes:"words, chars"}),this[e(270)]()}[_(270)](){const e=_,t=this[e(282)][e(289)]();gsap.fromTo(t,{filter:e(280),willChange:e(281)},{ease:e(268),filter:e(276),stagger:.05,scrollTrigger:{trigger:this.textElement,start:e(284),end:e(274),scrub:!0}})}};const g=p;(function(n,e){const t=p,x=n();for(;;)try{if(parseInt(t(443))/1*(-parseInt(t(431))/2)+parseInt(t(426))/3+-parseInt(t(439))/4+-parseInt(t(427))/5*(-parseInt(t(441))/6)+parseInt(t(428))/7+-parseInt(t(442))/8*(parseInt(t(444))/9)+-parseInt(t(430))/10*(-parseInt(t(445))/11)===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(m,977545);function m(){const n=["8PzaFUh","blur(0px)","Invalid text element provided.","scroll","initializeEffect","textElement","fromTo","top bottom-=15%","2975272mLrGvu","blur(8px)","78otxecu","44272yHnMrx","176326KUlCtc","2421HAiExZ","11xhxCzC","filter, transform","words","splitter","2875995ljJHRj","219805YpQuXz","7656852SSAsmn","getWords","12913190dNPPay"];return m=function(){return n},m()}function p(n,e){const t=m();return p=function(x,s){return x=x-426,t[x]},p(n,e)}class H{constructor(e){const t=p;if(!e||!(e instanceof HTMLElement))throw new Error(t(433));this.textElement=e,this[t(435)]()}[g(435)](){const e=g,t=()=>this[e(434)]();this[e(448)]=new S(this[e(436)],{resizeCallback:t,splitTypeTypes:e(447)}),this[e(434)]()}[g(434)](){const e=g,t=this.splitter[e(429)]();gsap[e(437)](t,{opacity:0,skewX:-20,willChange:e(446),filter:e(440)},{ease:"sine",opacity:1,skewX:0,filter:e(432),stagger:.04,scrollTrigger:{trigger:this[e(436)],start:e(438),end:"bottom center+=15%",scrub:!0}})}}function w(n,e){const t=E();return w=function(x,s){return x=x-499,t[x]},w(n,e)}(function(n,e){const t=w,x=n();for(;;)try{if(parseInt(t(509))/1+-parseInt(t(502))/2+-parseInt(t(504))/3+parseInt(t(499))/4+-parseInt(t(505))/5*(-parseInt(t(501))/6)+-parseInt(t(508))/7+parseInt(t(503))/8===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(E,959133);function E(){const n=["3644259CoYWjq","8019380Qcrphn","ticker","lagSmoothing","836556mobRjC","1000591XRDcuj","raf","add","5553744wRJWkg","scroll","6TkgpEU","3718262rJHgXA","1276976AvXlsF"];return E=function(){return n},E()}const C=()=>{const n=w,e=new Lenis({lerp:.2});e.on(n(500),ScrollTrigger.update),gsap[n(506)][n(511)](t=>{e[n(510)](t*1e3)}),gsap.ticker[n(507)](0)};C();const v=b;(function(n,e){const t=b,x=n();for(;;)try{if(-parseInt(t(433))/1+parseInt(t(422))/2*(parseInt(t(437))/3)+-parseInt(t(438))/4*(-parseInt(t(435))/5)+parseInt(t(428))/6+-parseInt(t(427))/7*(parseInt(t(434))/8)+parseInt(t(432))/9+-parseInt(t(429))/10===e)break;x.push(x.shift())}catch{x.push(x.shift())}})(y,559231);function y(){const n=["querySelectorAll","31368CoMtfG","Unable to start reveal text on scroll, missing unblurTextOnScrollElements config.","DOMContentLoaded","forEach","selector","86667opPlMd","4042842hpjShv","15573370nmVvus","map","effect","8378919peWfuZ","481584sHBMMZ","16hciXir","26060fhQZFS","addEventListener","111SqhvmH","336taVrQp"];return y=function(){return n},y()}function b(n,e){const t=y();return b=function(x,s){return x=x-422,t[x]},b(n,e)}C(),gsap.registerPlugin(ScrollTrigger),document[v(436)](v(424),()=>{const n=v,e={"effect-1":M,"effect-2":L,"effect-3":H};function t(x){const s=b;x[s(430)](i=>({selector:i[s(426)],effect:e[i[s(431)]]}))[s(425)](({selector:i,effect:R})=>{const k=s;document[k(439)](i)[k(425)](A=>{new R(A)})})}try{t(unblurTextOnScrollElements)}catch{console.error(n(423))}})}); | ||
(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))}})}); |
{ | ||
"name": "@digitalmoves/blur-vision", | ||
"private": false, | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "dist/main.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -1,3 +0,5 @@ | ||
# [[PLUGIN NAME]] squarespace plugin ✨ | ||
# BlurVision Squarespace plugin ✨ | ||
Elevate your website’s user experience with dynamic visual effects on scroll. | ||
> [Demo](https://blurvision.squarespace.com/?password=digitalmoves) • Get this squarespace plugin 👉 [Digital Moves plugin store](https://www.digitalmoves.com.au/plugins/p/blurvision) | ||
@@ -7,3 +9,2 @@ | ||
Elevate your website’s user experience with dynamic visual effects on scroll. | ||
As users scroll through your site, major text elements gradually unblur, creating a stunning reveal effect synchronised with their scroll position. This subtle yet powerful animation enhances readability and engagement, making key messages stand out while maintaining a clean, modern design. | ||
@@ -10,0 +11,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12574
52
15
0