@digitalmoves/text-scroll-effects-02 0.0.3 → 0.0.4
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 +6 -0
- package/dist/main.umd.js +24 -0
- package/package.json +4 -4
- package/dist/main.js +0 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @digitalmoves/text-scroll-effects-02
|
|
2
2
|
|
|
3
|
+
## 0.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix a typo in shared/setup.js that broke the guard preventing duplicate Lenis/GSAP wiring: the code checked `window.gsapLenisInitialized` but set `window.gsapInitialized`, so the guard never actually engaged. On pages running multiple Digital Moves plugins together, each plugin's copy of this code would re-run the Lenis/GSAP sync setup, causing Lenis's scroll simulation to be manually advanced once per plugin per animation frame (on top of Lenis's own autoRaf loop). This desynced Lenis's reported scroll position from what GSAP ScrollTrigger pins expected, causing pinned sections (like curtain-reveal) to release out of sync with the actual scroll - the page would appear to scroll through a pinned section while it was still animating. Also set `autoRaf: false` on the Lenis instance since GSAP's ticker already drives it manually - having both was redundant even with a single plugin on the page.
|
|
8
|
+
|
|
3
9
|
## 0.0.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/main.umd.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
MIT License
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2009 - 2024 [Digital Moves](https://digitalmoves.com/au) and [Codrops](https://tympanus.net/codrops)
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
|
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)})});
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitalmoves/text-scroll-effects-02",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"main": "dist/main.js",
|
|
4
|
+
"version": "0.0.4",
|
|
5
|
+
"main": "dist/main.umd.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
8
8
|
"README.md",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"name": "Harley"
|
|
15
15
|
},
|
|
16
16
|
"homepage": "https://digitalmoves.com.au/plugins/p/text-scroll-animation-pack-01",
|
|
17
|
-
"devDependencies": {},
|
|
18
17
|
"scripts": {
|
|
19
18
|
"dev": "vite",
|
|
20
19
|
"build": "vite build"
|
|
21
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {}
|
|
22
22
|
}
|
package/dist/main.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
MIT License
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2009 - 2024 [Digital Moves](https://digitalmoves.com/au) and [Codrops](https://tympanus.net/codrops)
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
in the Software without restriction, including without limitation the rights
|
|
9
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
furnished to do so, subject to the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be included in all
|
|
14
|
-
copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
SOFTWARE.
|
|
23
|
-
*/
|
|
24
|
-
(function(h){typeof define=="function"&&define.amd?define(h):h()})(function(){"use strict";function h(g,e){const t=u();return h=function(f,l){return f=f-217,t[f]},h(g,e)}const m=h;(function(g,e){const t=h,f=g();for(;;)try{if(-parseInt(t(253))/1*(parseInt(t(225))/2)+parseInt(t(219))/3*(-parseInt(t(257))/4)+-parseInt(t(269))/5+-parseInt(t(233))/6+parseInt(t(232))/7*(-parseInt(t(261))/8)+parseInt(t(289))/9+parseInt(t(238))/10*(parseInt(t(268))/11)===e)break;f.push(f.shift())}catch{f.push(f.shift())}})(u,920619),gsap[m(286)](ScrollTrigger);const M=()=>{const g=m;let e=window[g(266)];typeof e===g(237)&&(window.lenisInstance=e=new Lenis({lerp:.2,smooth:!0})),e.on("scroll",()=>ScrollTrigger.update());const t=f=>{e[g(292)](f),requestAnimationFrame(t)};requestAnimationFrame(t)};function u(){const g=["top bottom+=40%","registerPlugin","center top+=20%","power4","5720679TIduiD","utils","effect-12","raf","effect-6","effect-4","555VuXqdf","transform, filter","end","effect-10","back.out(1.2)","length","31750nSaXMR","center center","center","top bottom-=20%","parentNode","opacity, transform","bottom top+=20%","658987xPLljX","8614146mCtkQo","effect-3","floor","none","undefined","20RNDPGB","entries","abs","50% 0%","transform","top top+=15%","effect","50% 100%","effect-7","top bottom","effect-11","querySelectorAll","data-splitting",".char","bottom top-=50%","11QCGxMA","effect-1","effect-2","set","7700maUHkg","ceil","+=500%","bottom top","88IuRTav","power1.inOut","querySelector","top bottom-=10%","expo","lenisInstance","start","25747557YfRxLE","6971970YHOnXI","forEach","selector","center bottom","power3.in",".word","0% 50%","timeline","setAttribute","push","power2.inOut","mapRange","random","effect-9","fromTo","+=100%"];return u=function(){return g},u()}const w=g=>{const e=m,t={};g[e(270)](r=>{const x=e,c=document[x(263)](r[x(271)]);c&&(c[x(277)](x(250),!0),!t[r[x(244)]]&&(t[r[x(244)]]=[]),t[r[x(244)]][x(278)](c))}),Splitting();const f=t[e(254)]||[],l=t[e(255)]||[],b=t[e(234)]||[],I=t[e(218)]||[],T=t["effect-5"]||[],v=t[e(217)]||[],S=t[e(246)]||[],E=t["effect-8"]||[],X=t[e(282)]||[],q=t[e(222)]||[],k=t[e(248)]||[],O=t[e(291)]||[],z=t["effect-13"]||[],A=t["effect-14"]||[];f[e(270)](r=>{const x=e;gsap.fromTo(r,{transformOrigin:x(275),rotate:3},{ease:x(236),rotate:0,scrollTrigger:{trigger:r,start:x(247),end:"top top",scrub:!0}}),gsap[x(283)](r[x(249)](x(274)),{"will-change":"opacity",opacity:.1},{ease:x(236),opacity:1,stagger:.05,scrollTrigger:{trigger:r,start:x(228),end:x(287),scrub:!0}})}),l[e(270)](r=>{const x=e,c=r.querySelectorAll(x(251));c[x(270)](s=>gsap[x(256)](s[x(229)],{perspective:1e3})),gsap[x(283)](c,{"will-change":"opacity, transform",opacity:0,rotateX:()=>gsap[x(290)][x(281)](-120,120),z:()=>gsap[x(290)].random(-200,200)},{ease:"none",opacity:1,rotateX:0,z:0,stagger:.02,scrollTrigger:{trigger:r,start:x(247),end:x(260),scrub:!0}})}),b[e(270)](r=>{const x=e,c=r[x(249)](".char");c.forEach(s=>gsap.set(s[x(229)],{perspective:1e3})),gsap[x(283)](c,{"will-change":"opacity, transform",opacity:.2,z:-800},{ease:x(223),opacity:1,z:0,stagger:.04,scrollTrigger:{trigger:r,start:x(247),end:x(260),scrub:!0}})}),I.forEach(r=>{const x=e,c=r[x(249)](x(251));c.forEach(s=>gsap[x(256)](s.parentNode,{perspective:1e3})),gsap.fromTo(c,{"will-change":x(230),transformOrigin:"50% 0%",opacity:0,rotationX:-90,z:-200},{ease:"power1",opacity:1,stagger:.05,rotationX:0,z:0,scrollTrigger:{trigger:r,start:"center bottom",end:x(231),scrub:!0}})}),T[e(270)](r=>{const x=e,c=r.querySelectorAll(".char");c[x(270)](s=>gsap[x(256)](s.parentNode,{perspective:1e3})),gsap[x(283)](c,{"will-change":x(230),transformOrigin:x(245),opacity:0,rotationX:90},{ease:x(288),opacity:1,stagger:{each:.03,from:x(281)},rotationX:0,scrollTrigger:{trigger:r,start:x(272),end:x(231),scrub:!0}})}),v.forEach(r=>{const x=e,c=[...r[x(249)](x(274))];for(const s of c){const i=s[x(249)](x(251));i[x(270)](a=>gsap[x(256)](a[x(229)],{perspective:2e3})),gsap[x(283)](i,{"will-change":x(230),opacity:0,y:(a,n,o)=>-40*Math[x(240)](a-o[x(224)]/2),z:()=>gsap[x(290)][x(281)](-1500,-600),rotationX:()=>gsap.utils[x(281)](-500,-200)},{ease:x(262),opacity:1,y:0,z:0,rotationX:0,stagger:{each:.06,from:x(227)},scrollTrigger:{trigger:s,start:x(247),end:x(243),scrub:!0}})}}),S.forEach(r=>{const x=e,c=[...r[x(249)](".word")];for(const s of c){const i=s[x(249)](".char"),a=i[x(224)];i[x(270)](n=>gsap[x(256)](n[x(229)],{perspective:1e3})),gsap[x(283)](i,{"will-change":"transform",x:n=>{const o=x,p=n<Math[o(258)](a/2)?n:Math[o(258)](a/2)-Math.abs(Math.floor(a/2)-n)-1;return(a%2?Math[o(240)](Math[o(258)](a/2)-1-p):Math[o(240)](Math[o(258)](a/2)-p))*200*(n<a/2?-1:1)},y:n=>{const o=x;return(n<Math.ceil(a/2)?n:Math.ceil(a/2)-Math[o(240)](Math[o(235)](a/2)-n)-1)*60},rotationY:-270,rotationZ:n=>{const o=x,p=n<Math[o(258)](a/2)?n:Math[o(258)](a/2)-Math[o(240)](Math[o(235)](a/2)-n)-1;return n<a/2?Math[o(240)](p-a/2)*8:-1*Math.abs(p-a/2)*8}},{ease:x(279),x:0,y:0,rotationZ:0,rotationY:0,scale:1,scrollTrigger:{trigger:s,start:"top bottom+=40%",end:"top top+=15%",scrub:!0}})}}),E[e(270)](r=>{const x=e,c=[...r.querySelectorAll(x(274))];for(const[s,i]of c[x(239)]())gsap[x(283)](i[x(249)](x(251)),{"will-change":x(242),scale:.01,x:(a,n,o)=>{const p=x;return s%2?a*50:(o[p(224)]-a-1)*-50}},{ease:x(288),scale:1,x:0,scrollTrigger:{trigger:i,start:x(272),end:"bottom top-=40%",scrub:!0}})}),X[e(270)](r=>{const x=e,c=r[x(249)](".char"),s=c[x(224)];gsap.fromTo(c,{"will-change":x(242),y:i=>{const a=x,n=i<Math.ceil(s/2)?i:Math[a(258)](s/2)-Math.abs(Math[a(235)](s/2)-i)-1;return(s/2-n+6)*130}},{ease:"elastic.out(.4)",y:0,stagger:{amount:.1,from:x(227)},scrollTrigger:{trigger:r,start:x(247),end:x(252),scrub:!0}})}),q[e(270)](r=>{const x=e;gsap.fromTo(r[x(249)](x(251)),{"will-change":"transform",transformOrigin:x(245),scaleY:0},{ease:x(273),opacity:1,scaleY:1,stagger:.05,scrollTrigger:{trigger:r,start:x(226),end:x(259),scrub:1,pin:r[x(229)][x(229)]}})}),k.forEach(r=>{const x=e,c=[...r.querySelectorAll(x(274))],s=gsap[x(276)]({scrollTrigger:{trigger:r,start:x(226),end:x(284),scrub:!0,pin:r[x(229)]}});for(const[i,a]of c[x(239)]())s.fromTo(a[x(249)](x(251)),{"will-change":x(242),transformOrigin:()=>!i%2?x(241):"50% 100%",scaleY:0},{ease:x(262),scaleY:1,stagger:{amount:.3,from:"center"}},0)}),O[e(270)](r=>{const x=e,c=[...r[x(249)](x(274))];c[x(270)](s=>gsap.set(s[x(229)],{perspective:1e3})),gsap[x(283)](c,{"will-change":"opacity, transform",z:()=>gsap[x(290)].random(500,950),opacity:0,xPercent:s=>gsap[x(290)][x(281)](-100,100),yPercent:s=>gsap[x(290)][x(281)](-10,10),rotationX:()=>gsap[x(290)][x(281)](-90,90)},{ease:x(265),opacity:1,rotationX:0,rotationY:0,xPercent:0,yPercent:0,z:0,scrollTrigger:{trigger:r,start:x(226),end:"+=300%",scrub:!0,pin:r[x(229)]},stagger:{each:.006,from:"random"}})}),z[e(270)](r=>{const x=e,c=[...r[x(249)](".word")];for(const s of c){const i=s[x(249)](".char"),a=i.length;gsap[x(283)](i,{"will-change":x(220),transformOrigin:"50% 100%",scale:n=>{const o=x,p=n<Math[o(258)](a/2)?n:Math[o(258)](a/2)-Math[o(240)](Math[o(235)](a/2)-n)-1;return gsap[o(290)].mapRange(0,Math[o(258)](a/2),.5,2.1,p)},y:n=>{const o=x,p=n<Math[o(258)](a/2)?n:Math.ceil(a/2)-Math.abs(Math[o(235)](a/2)-n)-1;return gsap.utils.mapRange(0,Math[o(258)](a/2),0,60,p)},rotation:n=>{const o=x,p=n<Math[o(258)](a/2)?n:Math.ceil(a/2)-Math[o(240)](Math[o(235)](a/2)-n)-1;return n<a/2?gsap.utils[o(280)](0,Math[o(258)](a/2),-4,0,p):gsap[o(290)][o(280)](0,Math[o(258)](a/2),0,4,p)},filter:"blur(12px) opacity(0)"},{ease:x(279),y:0,rotation:0,scale:1,filter:"blur(0px) opacity(1)",scrollTrigger:{trigger:s,start:x(285),end:"top top+=15%",scrub:!0},stagger:{amount:.15,from:x(227)}})}}),A[e(270)](r=>{const x=e,c=[...r.querySelectorAll(x(274))];for(const[s,i]of c[x(239)]()){const a=i[x(249)](x(251));gsap[x(283)](a,{"will-change":x(242),transformOrigin:(s%2?0:100)+"% "+(s%2?100:0)+"%",scale:0},{ease:x(288),scale:1,stagger:{each:.03,from:s%2?x(221):x(267)},scrollTrigger:{trigger:i,start:x(264),end:"top top",scrub:!0}})}})};function d(g,e){var t=_();return d=function(f,l){f=f-230;var b=t[f];return b},d(g,e)}var y=d;(function(g,e){for(var t=d,f=g();;)try{var l=-parseInt(t(238))/1+-parseInt(t(239))/2+parseInt(t(236))/3*(parseInt(t(241))/4)+-parseInt(t(240))/5*(parseInt(t(235))/6)+-parseInt(t(242))/7*(parseInt(t(234))/8)+parseInt(t(232))/9*(parseInt(t(237))/10)+-parseInt(t(233))/11*(-parseInt(t(230))/12);if(l===e)break;f.push(f.shift())}catch{f.push(f.shift())}})(_,755394);function _(){var g=["3768sVLhoJ","addEventListener","23553CokHHh","99913koHjqg","32GwlGbp","6066EsfpTb","2383389JdhECJ","500nHnLpq","389757jHZGkH","1596794mESdwD","3745EQkCQp","4KTkvIW","1884029JDvNwv","DOMContentLoaded"];return _=function(){return g},_()}document[y(231)](y(243),()=>{M(),w(textScrollPack2Elements)})});
|