@digitalmoves/text-scroll-effects-02 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @digitalmoves/text-scroll-effects-02
2
2
 
3
+ ## 0.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Revert to the exact code from before today's session (curtain-reveal back to its 0.0.16 logic, and the shared Lenis/GSAP setup fix reverted). Today's changes, while individually tested, ended up causing regressions on other sites using these plugins (a layout gap on a different client site). Rolling everything back to the known-good state while a safer approach is worked out separately, away from live sites.
8
+
3
9
  ## 0.0.4
4
10
 
5
11
  ### Patch Changes
package/dist/main.umd.js CHANGED
@@ -21,4 +21,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
21
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  SOFTWARE.
23
23
  */
24
- (function(h){typeof define=="function"&&define.amd?define(h):h()})(function(){"use strict";(function(o,t){for(var e=u,i=o();;)try{var l=parseInt(e(122))/1+parseInt(e(123))/2+parseInt(e(121))/3+parseInt(e(125))/4*(parseInt(e(111))/5)+-parseInt(e(118))/6*(-parseInt(e(129))/7)+parseInt(e(124))/8+-parseInt(e(127))/9*(parseInt(e(130))/10);if(l===t)break;i.push(i.shift())}catch{i.push(i.shift())}})(_,594973);function h(){var o=u;!window[o(116)]&&typeof Lenis!==o(112)&&(window[o(116)]=new Lenis({autoRaf:!1,lerp:.13,prevent:t=>t[o(109)]("data-test")===o(120)}))}function u(o,t){var e=_();return u=function(i,l){i=i-107;var d=e[i];return d},u(o,t)}function T(){var o=u;!window[o(113)]&&typeof window.gsap!==o(112)&&typeof window[o(110)]!==o(112)&&(window[o(113)]=!0,gsap[o(108)](ScrollTrigger)),!window[o(114)]&&window[o(116)]&&(window.gsapLenisInitialized=!0,typeof ScrollTrigger<"u"&&window[o(116)].on(o(115),ScrollTrigger[o(128)]),gsap[o(117)][o(126)](t=>{var e=o;window[e(116)][e(107)](t*1e3)}),gsap[o(117)][o(119)](0))}function _(){var o=["add","395046qzViWR","update","177541YqhtHA","590rBIbWh","raf","registerPlugin","getAttribute","ScrollTrigger","2625jPEpeR","undefined","scrollTriggerRegistered","gsapLenisInitialized","scroll","lenis","ticker","222scvQKE","lagSmoothing","catalog","3204795HTKYUT","393937YQHwVJ","18998REaQrV","4756096Nnvksk","1372BLjcpY"];return _=function(){return o},_()}const M=b;function b(o,t){const e=w();return b=function(i,l){return i=i-213,e[i]},b(o,t)}(function(o,t){const e=b,i=o();for(;;)try{if(parseInt(e(258))/1+-parseInt(e(286))/2+-parseInt(e(242))/3*(parseInt(e(236))/4)+-parseInt(e(256))/5*(parseInt(e(247))/6)+parseInt(e(279))/7*(-parseInt(e(232))/8)+parseInt(e(287))/9*(-parseInt(e(262))/10)+parseInt(e(270))/11===t)break;i.push(i.shift())}catch{i.push(i.shift())}})(w,393200),gsap[M(218)](ScrollTrigger);function w(){const o=["blur(12px) opacity(0)","power1.inOut","186326narAXQ","blur(0px) opacity(1)","none","effect-12","selector","opacity","effect-8","123482OhBsXX","9VeHReB","setAttribute","transform","bottom top+=20%","effect-10","raf","0% 50%","top bottom-=10%","power2.inOut","registerPlugin","+=500%","top top+=15%","parentNode","top top","opacity, transform",".char","timeline","querySelectorAll","effect-14","effect","expo","bottom top","effect-3","24hCEFuk","effect-7","abs","center","64444nRXMyw","transform, filter",".word","floor","set","back.out(1.2)","138uVnNIb","center center","+=300%","entries","lenisInstance","219858rcxSUg","forEach","mapRange","top bottom+=40%","+=100%","data-splitting","end","random","power4","70JhucWX","push","693703OUOZUE","fromTo","50% 0%","ceil","1903330xXxvMP","bottom top-=40%","scroll","effect-1","update","top bottom-=20%","center bottom","undefined","14140863dFzhMQ","50% 100%","top bottom","length","utils","effect-4","effect-5"];return w=function(){return o},w()}const v=o=>{const t=M,e={};o[t(248)](r=>{const x=t,c=document.querySelector(r[x(283)]);c&&(c[x(288)](x(252),!0),!e[r[x(228)]]&&(e[r.effect]=[]),e[r[x(228)]][x(257)](c))}),Splitting();const i=e[t(265)]||[],l=e["effect-2"]||[],d=e[t(231)]||[],S=e[t(275)]||[],X=e[t(276)]||[],z=e["effect-6"]||[],O=e[t(233)]||[],E=e[t(285)]||[],q=e["effect-9"]||[],A=e[t(213)]||[],k=e["effect-11"]||[],Y=e[t(282)]||[],L=e["effect-13"]||[],P=e[t(227)]||[];i.forEach(r=>{const x=t;gsap[x(259)](r,{transformOrigin:x(215),rotate:3},{ease:x(281),rotate:0,scrollTrigger:{trigger:r,start:x(272),end:x(222),scrub:!0}}),gsap.fromTo(r[x(226)](".word"),{"will-change":x(284),opacity:.1},{ease:"none",opacity:1,stagger:.05,scrollTrigger:{trigger:r,start:x(267),end:"center top+=20%",scrub:!0}})}),l[t(248)](r=>{const x=t,c=r.querySelectorAll(x(224));c[x(248)](s=>gsap.set(s[x(221)],{perspective:1e3})),gsap[x(259)](c,{"will-change":x(223),opacity:0,rotateX:()=>gsap.utils.random(-120,120),z:()=>gsap[x(274)][x(254)](-200,200)},{ease:x(281),opacity:1,rotateX:0,z:0,stagger:.02,scrollTrigger:{trigger:r,start:x(272),end:x(230),scrub:!0}})}),d[t(248)](r=>{const x=t,c=r.querySelectorAll(x(224));c[x(248)](s=>gsap[x(240)](s.parentNode,{perspective:1e3})),gsap[x(259)](c,{"will-change":"opacity, transform",opacity:.2,z:-800},{ease:x(241),opacity:1,z:0,stagger:.04,scrollTrigger:{trigger:r,start:x(272),end:x(230),scrub:!0}})}),S.forEach(r=>{const x=t,c=r.querySelectorAll(x(224));c.forEach(s=>gsap[x(240)](s[x(221)],{perspective:1e3})),gsap[x(259)](c,{"will-change":x(223),transformOrigin:x(260),opacity:0,rotationX:-90,z:-200},{ease:"power1",opacity:1,stagger:.05,rotationX:0,z:0,scrollTrigger:{trigger:r,start:x(268),end:x(290),scrub:!0}})}),X[t(248)](r=>{const x=t,c=r[x(226)](".char");c[x(248)](s=>gsap[x(240)](s[x(221)],{perspective:1e3})),gsap[x(259)](c,{"will-change":x(223),transformOrigin:"50% 100%",opacity:0,rotationX:90},{ease:"power4",opacity:1,stagger:{each:.03,from:x(254)},rotationX:0,scrollTrigger:{trigger:r,start:"center bottom",end:x(290),scrub:!0}})}),z.forEach(r=>{const x=t,c=[...r[x(226)](".word")];for(const s of c){const g=s.querySelectorAll(x(224));g[x(248)](a=>gsap[x(240)](a[x(221)],{perspective:2e3})),gsap[x(259)](g,{"will-change":x(223),opacity:0,y:(a,f,n)=>-40*Math.abs(a-n[x(273)]/2),z:()=>gsap[x(274)].random(-1500,-600),rotationX:()=>gsap[x(274)].random(-500,-200)},{ease:x(278),opacity:1,y:0,z:0,rotationX:0,stagger:{each:.06,from:x(235)},scrollTrigger:{trigger:s,start:x(272),end:"top top+=15%",scrub:!0}})}}),O[t(248)](r=>{const x=t,c=[...r[x(226)](x(238))];for(const s of c){const g=s.querySelectorAll(x(224)),a=g[x(273)];g.forEach(f=>gsap[x(240)](f[x(221)],{perspective:1e3})),gsap[x(259)](g,{"will-change":x(289),x:f=>{const n=x,p=f<Math[n(261)](a/2)?f:Math[n(261)](a/2)-Math[n(234)](Math[n(239)](a/2)-f)-1;return(a%2?Math[n(234)](Math[n(261)](a/2)-1-p):Math[n(234)](Math[n(261)](a/2)-p))*200*(f<a/2?-1:1)},y:f=>{const n=x;return(f<Math[n(261)](a/2)?f:Math.ceil(a/2)-Math.abs(Math[n(239)](a/2)-f)-1)*60},rotationY:-270,rotationZ:f=>{const n=x,p=f<Math[n(261)](a/2)?f:Math[n(261)](a/2)-Math[n(234)](Math[n(239)](a/2)-f)-1;return f<a/2?Math.abs(p-a/2)*8:-1*Math[n(234)](p-a/2)*8}},{ease:x(217),x:0,y:0,rotationZ:0,rotationY:0,scale:1,scrollTrigger:{trigger:s,start:"top bottom+=40%",end:x(220),scrub:!0}})}}),E[t(248)](r=>{const x=t,c=[...r.querySelectorAll(x(238))];for(const[s,g]of c[x(245)]())gsap[x(259)](g[x(226)](".char"),{"will-change":x(289),scale:.01,x:(a,f,n)=>{const p=x;return s%2?a*50:(n[p(273)]-a-1)*-50}},{ease:"power4",scale:1,x:0,scrollTrigger:{trigger:g,start:"center bottom",end:x(263),scrub:!0}})}),q[t(248)](r=>{const x=t,c=r.querySelectorAll(x(224)),s=c[x(273)];gsap.fromTo(c,{"will-change":x(289),y:g=>{const a=x,f=g<Math[a(261)](s/2)?g:Math.ceil(s/2)-Math.abs(Math[a(239)](s/2)-g)-1;return(s/2-f+6)*130}},{ease:"elastic.out(.4)",y:0,stagger:{amount:.1,from:"center"},scrollTrigger:{trigger:r,start:x(272),end:"bottom top-=50%",scrub:!0}})}),A[t(248)](r=>{const x=t;gsap[x(259)](r.querySelectorAll(x(224)),{"will-change":x(289),transformOrigin:x(271),scaleY:0},{ease:"power3.in",opacity:1,scaleY:1,stagger:.05,scrollTrigger:{trigger:r,start:x(243),end:x(219),scrub:1,pin:r[x(221)][x(221)]}})}),k[t(248)](r=>{const x=t,c=[...r[x(226)](x(238))],s=gsap[x(225)]({scrollTrigger:{trigger:r,start:x(243),end:x(251),scrub:!0,pin:r[x(221)]}});for(const[g,a]of c.entries())s[x(259)](a[x(226)](".char"),{"will-change":x(289),transformOrigin:()=>!g%2?"50% 0%":x(271),scaleY:0},{ease:"power1.inOut",scaleY:1,stagger:{amount:.3,from:x(235)}},0)}),Y[t(248)](r=>{const x=t,c=[...r[x(226)](x(238))];c[x(248)](s=>gsap[x(240)](s[x(221)],{perspective:1e3})),gsap[x(259)](c,{"will-change":x(223),z:()=>gsap[x(274)][x(254)](500,950),opacity:0,xPercent:s=>gsap[x(274)][x(254)](-100,100),yPercent:s=>gsap[x(274)][x(254)](-10,10),rotationX:()=>gsap[x(274)][x(254)](-90,90)},{ease:x(229),opacity:1,rotationX:0,rotationY:0,xPercent:0,yPercent:0,z:0,scrollTrigger:{trigger:r,start:x(243),end:x(244),scrub:!0,pin:r[x(221)]},stagger:{each:.006,from:x(254)}})}),L.forEach(r=>{const x=t,c=[...r[x(226)](x(238))];for(const s of c){const g=s[x(226)](x(224)),a=g[x(273)];gsap[x(259)](g,{"will-change":x(237),transformOrigin:"50% 100%",scale:f=>{const n=x,p=f<Math[n(261)](a/2)?f:Math[n(261)](a/2)-Math[n(234)](Math.floor(a/2)-f)-1;return gsap.utils[n(249)](0,Math[n(261)](a/2),.5,2.1,p)},y:f=>{const n=x,p=f<Math.ceil(a/2)?f:Math.ceil(a/2)-Math[n(234)](Math[n(239)](a/2)-f)-1;return gsap.utils[n(249)](0,Math[n(261)](a/2),0,60,p)},rotation:f=>{const n=x,p=f<Math[n(261)](a/2)?f:Math[n(261)](a/2)-Math[n(234)](Math[n(239)](a/2)-f)-1;return f<a/2?gsap[n(274)][n(249)](0,Math[n(261)](a/2),-4,0,p):gsap[n(274)].mapRange(0,Math[n(261)](a/2),0,4,p)},filter:x(277)},{ease:x(217),y:0,rotation:0,scale:1,filter:x(280),scrollTrigger:{trigger:s,start:x(250),end:x(220),scrub:!0},stagger:{amount:.15,from:"center"}})}}),P[t(248)](r=>{const x=t,c=[...r[x(226)](".word")];for(const[s,g]of c[x(245)]()){const a=g[x(226)](".char");gsap.fromTo(a,{"will-change":"transform",transformOrigin:(s%2?0:100)+"% "+(s%2?100:0)+"%",scale:0},{ease:x(255),scale:1,stagger:{each:.03,from:s%2?x(253):"start"},scrollTrigger:{trigger:g,start:x(216),end:x(222),scrub:!0}})}})};var I=y;(function(o,t){for(var e=y,i=o();;)try{var l=parseInt(e(241))/1+-parseInt(e(246))/2+parseInt(e(243))/3*(parseInt(e(248))/4)+parseInt(e(250))/5+parseInt(e(245))/6+parseInt(e(247))/7+-parseInt(e(251))/8*(parseInt(e(244))/9);if(l===t)break;i.push(i.shift())}catch{i.push(i.shift())}})(m,865609);function m(){var o=["6160188egzdwK","2038686IufsHB","6240822qutVjD","79748BFersp","addEventListener","5750040JQnpik","2801528oNkthC","180177OTxLtB","DOMContentLoaded","111hIZXDy","54xfuXXV"];return m=function(){return o},m()}function y(o,t){var e=m();return y=function(i,l){i=i-241;var d=e[i];return d},y(o,t)}h(),T(),document[I(249)](I(242),()=>{v(textScrollPack2Elements)})});
24
+ (function(b){typeof define=="function"&&define.amd?define(b):b()})(function(){"use strict";(function(o,t){for(var e=u,g=o();;)try{var f=-parseInt(e(464))/1*(parseInt(e(479))/2)+parseInt(e(460))/3+parseInt(e(478))/4+parseInt(e(466))/5*(parseInt(e(459))/6)+parseInt(e(463))/7*(parseInt(e(469))/8)+parseInt(e(475))/9+parseInt(e(465))/10*(-parseInt(e(480))/11);if(f===t)break;g.push(g.shift())}catch{g.push(g.shift())}})(b,459091);function b(){var o=["3106092pLmIkU","22626rSWwfV","921217wXZdRH","lagSmoothing","24ATAVcJ","1712574IQPsVW","catalog","scrollTriggerRegistered","70ppXOLw","27AGcHkX","270SHPVbc","457630vBOgrD","gsapLenisInitialized","gsap","442096hxlbFm","update","registerPlugin","gsapInitialized","lenis","getAttribute","6836454vVrPDc","undefined","ScrollTrigger"];return b=function(){return o},b()}function u(o,t){var e=b();return u=function(g,f){g=g-459;var l=e[g];return l},u(o,t)}function I(){var o=u;!window[o(473)]&&typeof Lenis!==o(476)&&(window[o(473)]=new Lenis({autoRaf:!0,lerp:.13,prevent:t=>t[o(474)]("data-test")===o(461)}))}function v(){var o=u;!window[o(462)]&&typeof window[o(468)]!==o(476)&&typeof window[o(477)]<"u"&&(window[o(462)]=!0,gsap[o(471)](ScrollTrigger)),!window[o(467)]&&window[o(473)]&&(window[o(472)]=!0,typeof ScrollTrigger!==o(476)&&window.lenis.on("scroll",ScrollTrigger[o(470)]),gsap.ticker.add(t=>{var e=o;window[e(473)].raf(t*1e3)}),gsap.ticker[o(481)](0))}const y=h;(function(o,t){const e=h,g=o();for(;;)try{if(-parseInt(e(414))/1*(-parseInt(e(410))/2)+-parseInt(e(485))/3*(parseInt(e(403))/4)+parseInt(e(478))/5*(parseInt(e(404))/6)+parseInt(e(423))/7*(-parseInt(e(475))/8)+-parseInt(e(411))/9*(parseInt(e(464))/10)+-parseInt(e(476))/11+-parseInt(e(444))/12*(-parseInt(e(446))/13)===t)break;g.push(g.shift())}catch{g.push(g.shift())}})(_,927416),gsap[y(466)](ScrollTrigger);function h(o,t){const e=_();return h=function(g,f){return g=g-403,e[g]},h(o,t)}function _(){const o=["length","entries","setAttribute","7GJhvgd","50% 100%","random","scroll","querySelector","effect-1","center","update","end","effect-7",".char","transform, filter","bottom top+=20%","center center","top top","raf","top bottom",".word","center top+=20%","opacity","transform","121956hcruOx","mapRange","13xPrJux","50% 0%","effect-12","none","ceil","effect-2","effect-6","power2.inOut","opacity, transform","undefined","center bottom","bottom top-=50%","top bottom-=20%","selector","power1.inOut","power3.in","utils","timeline","80RoqxoE","set","registerPlugin","bottom top-=40%","back.out(1.2)","+=500%","parentNode","fromTo","effect-3","blur(12px) opacity(0)","bottom top","614216tWRHAA","116534AfEUMm","effect-10","15QuFxHF","power1","elastic.out(.4)","forEach","effect-13","effect-11","effect-4","2291445ihBkSr","floor","data-splitting","effect-14","4qSUKnU","3340242bhJFOs","lenisInstance","effect","push","effect-8","top top+=15%","4eLFQkP","786330dvDgdR","abs","0% 50%","398639vroMeD","top bottom-=10%","top bottom+=40%","start","power4","querySelectorAll"];return _=function(){return o},_()}const T=o=>{const t=y,e={};o[t(481)](a=>{const x=t,n=document[x(427)](a[x(459)]);n&&(n[x(422)](x(487),!0),!e[a[x(406)]]&&(e[a[x(406)]]=[]),e[a[x(406)]][x(407)](n))}),Splitting();const g=e[t(428)]||[],f=e[t(451)]||[],l=e[t(472)]||[],S=e[t(484)]||[],A=e["effect-5"]||[],O=e[t(452)]||[],E=e[t(432)]||[],X=e[t(408)]||[],k=e["effect-9"]||[],z=e[t(477)]||[],P=e[t(483)]||[],q=e[t(448)]||[],L=e[t(482)]||[],Y=e[t(488)]||[];g[t(481)](a=>{const x=t;gsap[x(471)](a,{transformOrigin:x(413),rotate:3},{ease:x(449),rotate:0,scrollTrigger:{trigger:a,start:x(439),end:x(437),scrub:!0}}),gsap[x(471)](a[x(419)](x(440)),{"will-change":x(442),opacity:.1},{ease:"none",opacity:1,stagger:.05,scrollTrigger:{trigger:a,start:x(458),end:x(441),scrub:!0}})}),f.forEach(a=>{const x=t,n=a[x(419)](x(433));n.forEach(s=>gsap[x(465)](s[x(470)],{perspective:1e3})),gsap[x(471)](n,{"will-change":x(454),opacity:0,rotateX:()=>gsap[x(462)][x(425)](-120,120),z:()=>gsap.utils[x(425)](-200,200)},{ease:x(449),opacity:1,rotateX:0,z:0,stagger:.02,scrollTrigger:{trigger:a,start:x(439),end:x(474),scrub:!0}})}),l[t(481)](a=>{const x=t,n=a[x(419)](x(433));n.forEach(s=>gsap[x(465)](s[x(470)],{perspective:1e3})),gsap[x(471)](n,{"will-change":x(454),opacity:.2,z:-800},{ease:x(468),opacity:1,z:0,stagger:.04,scrollTrigger:{trigger:a,start:x(439),end:x(474),scrub:!0}})}),S[t(481)](a=>{const x=t,n=a[x(419)](x(433));n[x(481)](s=>gsap.set(s[x(470)],{perspective:1e3})),gsap.fromTo(n,{"will-change":x(454),transformOrigin:x(447),opacity:0,rotationX:-90,z:-200},{ease:x(479),opacity:1,stagger:.05,rotationX:0,z:0,scrollTrigger:{trigger:a,start:x(456),end:x(435),scrub:!0}})}),A[t(481)](a=>{const x=t,n=a.querySelectorAll(x(433));n[x(481)](s=>gsap[x(465)](s.parentNode,{perspective:1e3})),gsap[x(471)](n,{"will-change":x(454),transformOrigin:x(424),opacity:0,rotationX:90},{ease:x(418),opacity:1,stagger:{each:.03,from:x(425)},rotationX:0,scrollTrigger:{trigger:a,start:x(456),end:"bottom top+=20%",scrub:!0}})}),O[t(481)](a=>{const x=t,n=[...a.querySelectorAll(x(440))];for(const s of n){const d=s[x(419)](x(433));d[x(481)](r=>gsap[x(465)](r[x(470)],{perspective:2e3})),gsap[x(471)](d,{"will-change":x(454),opacity:0,y:(r,i,c)=>-40*Math[x(412)](r-c[x(420)]/2),z:()=>gsap[x(462)][x(425)](-1500,-600),rotationX:()=>gsap[x(462)][x(425)](-500,-200)},{ease:x(460),opacity:1,y:0,z:0,rotationX:0,stagger:{each:.06,from:x(429)},scrollTrigger:{trigger:s,start:"top bottom",end:"top top+=15%",scrub:!0}})}}),E[t(481)](a=>{const x=t,n=[...a[x(419)](x(440))];for(const s of n){const d=s[x(419)](x(433)),r=d.length;d[x(481)](i=>gsap[x(465)](i.parentNode,{perspective:1e3})),gsap[x(471)](d,{"will-change":x(443),x:i=>{const c=x,p=i<Math[c(450)](r/2)?i:Math[c(450)](r/2)-Math[c(412)](Math[c(486)](r/2)-i)-1;return(r%2?Math.abs(Math[c(450)](r/2)-1-p):Math.abs(Math[c(450)](r/2)-p))*200*(i<r/2?-1:1)},y:i=>{const c=x;return(i<Math[c(450)](r/2)?i:Math.ceil(r/2)-Math.abs(Math[c(486)](r/2)-i)-1)*60},rotationY:-270,rotationZ:i=>{const c=x,p=i<Math[c(450)](r/2)?i:Math[c(450)](r/2)-Math[c(412)](Math[c(486)](r/2)-i)-1;return i<r/2?Math.abs(p-r/2)*8:-1*Math.abs(p-r/2)*8}},{ease:"power2.inOut",x:0,y:0,rotationZ:0,rotationY:0,scale:1,scrollTrigger:{trigger:s,start:x(416),end:"top top+=15%",scrub:!0}})}}),X[t(481)](a=>{const x=t,n=[...a[x(419)](x(440))];for(const[s,d]of n.entries())gsap.fromTo(d[x(419)](x(433)),{"will-change":x(443),scale:.01,x:(r,i,c)=>s%2?r*50:(c.length-r-1)*-50},{ease:x(418),scale:1,x:0,scrollTrigger:{trigger:d,start:"center bottom",end:x(467),scrub:!0}})}),k[t(481)](a=>{const x=t,n=a[x(419)](x(433)),s=n[x(420)];gsap.fromTo(n,{"will-change":x(443),y:d=>{const r=x,i=d<Math.ceil(s/2)?d:Math[r(450)](s/2)-Math[r(412)](Math[r(486)](s/2)-d)-1;return(s/2-i+6)*130}},{ease:x(480),y:0,stagger:{amount:.1,from:"center"},scrollTrigger:{trigger:a,start:"top bottom",end:x(457),scrub:!0}})}),z[t(481)](a=>{const x=t;gsap[x(471)](a[x(419)](".char"),{"will-change":"transform",transformOrigin:x(424),scaleY:0},{ease:x(461),opacity:1,scaleY:1,stagger:.05,scrollTrigger:{trigger:a,start:x(436),end:x(469),scrub:1,pin:a[x(470)][x(470)]}})}),P[t(481)](a=>{const x=t,n=[...a[x(419)](".word")],s=gsap[x(463)]({scrollTrigger:{trigger:a,start:x(436),end:"+=100%",scrub:!0,pin:a[x(470)]}});for(const[d,r]of n.entries())s[x(471)](r[x(419)](".char"),{"will-change":"transform",transformOrigin:()=>!d%2?x(447):"50% 100%",scaleY:0},{ease:x(460),scaleY:1,stagger:{amount:.3,from:x(429)}},0)}),q.forEach(a=>{const x=t,n=[...a.querySelectorAll(".word")];n.forEach(s=>gsap[x(465)](s[x(470)],{perspective:1e3})),gsap[x(471)](n,{"will-change":x(454),z:()=>gsap[x(462)].random(500,950),opacity:0,xPercent:s=>gsap[x(462)].random(-100,100),yPercent:s=>gsap.utils.random(-10,10),rotationX:()=>gsap[x(462)][x(425)](-90,90)},{ease:"expo",opacity:1,rotationX:0,rotationY:0,xPercent:0,yPercent:0,z:0,scrollTrigger:{trigger:a,start:x(436),end:"+=300%",scrub:!0,pin:a.parentNode},stagger:{each:.006,from:x(425)}})}),L[t(481)](a=>{const x=t,n=[...a[x(419)](x(440))];for(const s of n){const d=s.querySelectorAll(".char"),r=d[x(420)];gsap[x(471)](d,{"will-change":x(434),transformOrigin:"50% 100%",scale:i=>{const c=x,p=i<Math[c(450)](r/2)?i:Math[c(450)](r/2)-Math[c(412)](Math[c(486)](r/2)-i)-1;return gsap[c(462)].mapRange(0,Math[c(450)](r/2),.5,2.1,p)},y:i=>{const c=x,p=i<Math[c(450)](r/2)?i:Math[c(450)](r/2)-Math[c(412)](Math[c(486)](r/2)-i)-1;return gsap.utils.mapRange(0,Math.ceil(r/2),0,60,p)},rotation:i=>{const c=x,p=i<Math[c(450)](r/2)?i:Math[c(450)](r/2)-Math[c(412)](Math[c(486)](r/2)-i)-1;return i<r/2?gsap[c(462)][c(445)](0,Math[c(450)](r/2),-4,0,p):gsap[c(462)][c(445)](0,Math[c(450)](r/2),0,4,p)},filter:x(473)},{ease:x(453),y:0,rotation:0,scale:1,filter:"blur(0px) opacity(1)",scrollTrigger:{trigger:s,start:x(416),end:x(409),scrub:!0},stagger:{amount:.15,from:x(429)}})}}),Y[t(481)](a=>{const x=t,n=[...a.querySelectorAll(x(440))];for(const[s,d]of n[x(421)]()){const r=d[x(419)](x(433));gsap[x(471)](r,{"will-change":"transform",transformOrigin:(s%2?0:100)+"% "+(s%2?100:0)+"%",scale:0},{ease:"power4",scale:1,stagger:{each:.03,from:s%2?x(431):x(417)},scrollTrigger:{trigger:d,start:x(415),end:x(437),scrub:!0}})}})};var M=w;(function(o,t){for(var e=w,g=o();;)try{var f=parseInt(e(196))/1+parseInt(e(194))/2+-parseInt(e(197))/3*(-parseInt(e(188))/4)+parseInt(e(193))/5*(-parseInt(e(191))/6)+parseInt(e(192))/7+parseInt(e(195))/8*(parseInt(e(189))/9)+-parseInt(e(187))/10;if(f===t)break;g.push(g.shift())}catch{g.push(g.shift())}})(m,611142);function m(){var o=["77103oydFEC","DOMContentLoaded","4122pEGAhU","420882brYAGL","1530VBfGnv","1982548gUnKcc","584JCsGDh","573001HjtrsC","3kYyYqr","addEventListener","20319950UcFbbw","2414268EBnwaa"];return m=function(){return o},m()}function w(o,t){var e=m();return w=function(g,f){g=g-186;var l=e[g];return l},w(o,t)}I(),v(),document[M(186)](M(190),()=>{T(textScrollPack2Elements)})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@digitalmoves/text-scroll-effects-02",
3
3
  "private": false,
4
- "version": "0.0.4",
4
+ "version": "0.0.5",
5
5
  "main": "dist/main.umd.js",
6
6
  "files": [
7
7
  "dist",