@digitalmoves/text-scroll-effects-02 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ # @digitalmoves/text-scroll-effects-02
2
+
3
+ ## 0.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 22c2773: Initial release
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2009 - 2024 [Digital Moves](https://digitalmoves.com/au) and [Codrops](https://tympanus.net/codrops)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # Text Scroll Animation Pack 02 Squarespace plugin ✨
2
+
3
+ > [Demo](https://text-scroll-animation-pack-2.squarespace.com/?password=digitalmoves) • Get this Squarespace plugin 👉 [Digital Moves plugin store](https://www.digitalmoves.com.au/plugins/p/text-scroll-animation-pack-02)
4
+
5
+ ![Preview GIF](https://images.squarespace-cdn.com/content/v1/635099fe8d35d5193da21c1f/408c27d6-54fa-4b80-896f-1d08c7e779ba/Plugin+Shop+%282%29.gif?format=1500w)
6
+
7
+ Elevate your Squarespace website’s user experience with dynamic visual effects.
8
+
9
+ As users scroll through your site, major text elements animate on screen, 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
+
11
+ In addition, the plugin integrates smooth scrolling, ensuring that your visitors enjoy a seamless and polished navigation experience across all devices.
12
+
13
+ Perfect for storytelling websites, portfolios, or any platform looking to captivate their audience with smooth transitions and eye-catching text reveals. Take your web design to the next level with the Text Scroll Animation Pack 02.
14
+
15
+ Like the sound of this plugin? Visit the [Digital Moves plugin store](https://www.digitalmoves.com.au/plugins/p/text-scroll-animation-pack-02) to make it yours.
package/dist/main.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(b){typeof define=="function"&&define.amd?define(b):b()})(function(){"use strict";(function(g,t){const e=h,i=g();for(;;)try{if(-parseInt(e(269))/1+parseInt(e(279))/2*(parseInt(e(321))/3)+parseInt(e(303))/4*(parseInt(e(255))/5)+-parseInt(e(320))/6*(-parseInt(e(288))/7)+parseInt(e(301))/8*(parseInt(e(299))/9)+-parseInt(e(292))/10+parseInt(e(273))/11*(-parseInt(e(315))/12)===t)break;i.push(i.shift())}catch{i.push(i.shift())}})(b,456620),gsap.registerPlugin(ScrollTrigger);function b(){const g=["4616vEdInv","+=500%","56RjzQoh","effect-2","timeline","50% 0%","opacity","bottom top","opacity, transform","power4","setAttribute","length","top bottom-=10%","forEach","843420esqEKf","querySelector","selector","effect-1","bottom top+=20%","48174EDDulH","57zsOYLM","effect-11","start","top top","effect","power3.in","top bottom-=20%","scroll","push","center center","update","center top+=20%","querySelectorAll","center","raf",".word","304525Dhmyjq","top top+=15%",".char","set","+=300%","mapRange","effect-3","floor","effect-7","blur(0px) opacity(1)","power2.inOut","+=100%","top bottom+=40%","back.out(1.2)","170308dpQOrj","top bottom","elastic.out(.4)","blur(12px) opacity(0)","253UocxLc","abs","entries","effect-14","lenisInstance","none","70984aJKAsH","random","data-splitting","effect-8","utils","fromTo","0% 50%","expo","effect-5","105PCmEEv","ceil","power1.inOut","transform","934850ZfphIa","effect-6","parentNode","center bottom","transform, filter","50% 100%","bottom top-=40%","10755wqdfzH","effect-10"];return b=function(){return g},b()}const m=()=>{const g=h;let t=window[g(277)];typeof t>"u"&&(window[g(277)]=t=new Lenis({lerp:.2,smooth:!0})),t.on(g(246),()=>ScrollTrigger[g(249)]());const e=i=>{t[g(253)](i),requestAnimationFrame(e)};requestAnimationFrame(e)};function h(g,t){const e=b();return h=function(i,l){return i=i-241,e[i]},h(g,t)}const M=g=>{const t=h,e={};g[t(314)](r=>{const x=t,c=document[x(316)](r[x(317)]);c&&(c[x(311)](x(281),!0),!e[r.effect]&&(e[r[x(243)]]=[]),e[r[x(243)]][x(247)](c))}),Splitting();const i=e[t(318)]||[],l=e[t(304)]||[],u=e[t(261)]||[],w=e["effect-4"]||[],I=e[t(287)]||[],T=e[t(293)]||[],v=e[t(263)]||[],z=e[t(282)]||[],O=e["effect-9"]||[],q=e[t(300)]||[],E=e[t(322)]||[],S=e["effect-12"]||[],X=e["effect-13"]||[],N=e[t(276)]||[];i[t(314)](r=>{const x=t;gsap[x(284)](r,{transformOrigin:x(285),rotate:3},{ease:"none",rotate:0,scrollTrigger:{trigger:r,start:x(270),end:"top top",scrub:!0}}),gsap[x(284)](r.querySelectorAll(".word"),{"will-change":x(307),opacity:.1},{ease:"none",opacity:1,stagger:.05,scrollTrigger:{trigger:r,start:x(245),end:x(250),scrub:!0}})}),l[t(314)](r=>{const x=t,c=r[x(251)](x(257));c.forEach(n=>gsap[x(258)](n.parentNode,{perspective:1e3})),gsap[x(284)](c,{"will-change":x(309),opacity:0,rotateX:()=>gsap[x(283)].random(-120,120),z:()=>gsap[x(283)][x(280)](-200,200)},{ease:x(278),opacity:1,rotateX:0,z:0,stagger:.02,scrollTrigger:{trigger:r,start:x(270),end:x(308),scrub:!0}})}),u[t(314)](r=>{const x=t,c=r[x(251)](x(257));c[x(314)](n=>gsap[x(258)](n.parentNode,{perspective:1e3})),gsap[x(284)](c,{"will-change":x(309),opacity:.2,z:-800},{ease:x(268),opacity:1,z:0,stagger:.04,scrollTrigger:{trigger:r,start:"top bottom",end:x(308),scrub:!0}})}),w[t(314)](r=>{const x=t,c=r[x(251)](x(257));c[x(314)](n=>gsap.set(n[x(294)],{perspective:1e3})),gsap[x(284)](c,{"will-change":x(309),transformOrigin:x(306),opacity:0,rotationX:-90,z:-200},{ease:"power1",opacity:1,stagger:.05,rotationX:0,z:0,scrollTrigger:{trigger:r,start:x(295),end:x(319),scrub:!0}})}),I[t(314)](r=>{const x=t,c=r[x(251)](x(257));c.forEach(n=>gsap[x(258)](n.parentNode,{perspective:1e3})),gsap.fromTo(c,{"will-change":x(309),transformOrigin:x(297),opacity:0,rotationX:90},{ease:"power4",opacity:1,stagger:{each:.03,from:x(280)},rotationX:0,scrollTrigger:{trigger:r,start:x(295),end:x(319),scrub:!0}})}),T[t(314)](r=>{const x=t,c=[...r[x(251)](x(254))];for(const n of c){const f=n[x(251)](x(257));f[x(314)](a=>gsap[x(258)](a[x(294)],{perspective:2e3})),gsap[x(284)](f,{"will-change":x(309),opacity:0,y:(a,s,o)=>-40*Math.abs(a-o[x(312)]/2),z:()=>gsap.utils.random(-1500,-600),rotationX:()=>gsap[x(283)][x(280)](-500,-200)},{ease:x(290),opacity:1,y:0,z:0,rotationX:0,stagger:{each:.06,from:x(252)},scrollTrigger:{trigger:n,start:x(270),end:"top top+=15%",scrub:!0}})}}),v[t(314)](r=>{const x=t,c=[...r[x(251)](x(254))];for(const n of c){const f=n[x(251)](x(257)),a=f.length;f[x(314)](s=>gsap[x(258)](s[x(294)],{perspective:1e3})),gsap[x(284)](f,{"will-change":x(291),x:s=>{const o=x,p=s<Math[o(289)](a/2)?s:Math.ceil(a/2)-Math[o(274)](Math[o(262)](a/2)-s)-1;return(a%2?Math[o(274)](Math[o(289)](a/2)-1-p):Math[o(274)](Math[o(289)](a/2)-p))*200*(s<a/2?-1:1)},y:s=>{const o=x;return(s<Math[o(289)](a/2)?s:Math[o(289)](a/2)-Math.abs(Math[o(262)](a/2)-s)-1)*60},rotationY:-270,rotationZ:s=>{const o=x,p=s<Math.ceil(a/2)?s:Math.ceil(a/2)-Math[o(274)](Math[o(262)](a/2)-s)-1;return s<a/2?Math.abs(p-a/2)*8:-1*Math[o(274)](p-a/2)*8}},{ease:x(265),x:0,y:0,rotationZ:0,rotationY:0,scale:1,scrollTrigger:{trigger:n,start:x(267),end:x(256),scrub:!0}})}}),z[t(314)](r=>{const x=t,c=[...r[x(251)](".word")];for(const[n,f]of c[x(275)]())gsap[x(284)](f[x(251)](x(257)),{"will-change":x(291),scale:.01,x:(a,s,o)=>{const p=x;return n%2?a*50:(o[p(312)]-a-1)*-50}},{ease:x(310),scale:1,x:0,scrollTrigger:{trigger:f,start:"center bottom",end:x(298),scrub:!0}})}),O[t(314)](r=>{const x=t,c=r[x(251)](x(257)),n=c.length;gsap[x(284)](c,{"will-change":x(291),y:f=>{const a=x,s=f<Math.ceil(n/2)?f:Math[a(289)](n/2)-Math[a(274)](Math.floor(n/2)-f)-1;return(n/2-s+6)*130}},{ease:x(271),y:0,stagger:{amount:.1,from:x(252)},scrollTrigger:{trigger:r,start:"top bottom",end:"bottom top-=50%",scrub:!0}})}),q[t(314)](r=>{const x=t;gsap[x(284)](r.querySelectorAll(".char"),{"will-change":x(291),transformOrigin:x(297),scaleY:0},{ease:x(244),opacity:1,scaleY:1,stagger:.05,scrollTrigger:{trigger:r,start:x(248),end:x(302),scrub:1,pin:r[x(294)][x(294)]}})}),E[t(314)](r=>{const x=t,c=[...r[x(251)](x(254))],n=gsap[x(305)]({scrollTrigger:{trigger:r,start:"center center",end:x(266),scrub:!0,pin:r.parentNode}});for(const[f,a]of c[x(275)]())n.fromTo(a[x(251)](x(257)),{"will-change":"transform",transformOrigin:()=>!f%2?x(306):x(297),scaleY:0},{ease:x(290),scaleY:1,stagger:{amount:.3,from:x(252)}},0)}),S[t(314)](r=>{const x=t,c=[...r[x(251)](".word")];c[x(314)](n=>gsap[x(258)](n.parentNode,{perspective:1e3})),gsap[x(284)](c,{"will-change":"opacity, transform",z:()=>gsap[x(283)][x(280)](500,950),opacity:0,xPercent:n=>gsap[x(283)].random(-100,100),yPercent:n=>gsap.utils[x(280)](-10,10),rotationX:()=>gsap[x(283)].random(-90,90)},{ease:x(286),opacity:1,rotationX:0,rotationY:0,xPercent:0,yPercent:0,z:0,scrollTrigger:{trigger:r,start:"center center",end:x(259),scrub:!0,pin:r[x(294)]},stagger:{each:.006,from:x(280)}})}),X[t(314)](r=>{const x=t,c=[...r[x(251)](x(254))];for(const n of c){const f=n[x(251)](x(257)),a=f.length;gsap[x(284)](f,{"will-change":x(296),transformOrigin:x(297),scale:s=>{const o=x,p=s<Math[o(289)](a/2)?s:Math[o(289)](a/2)-Math[o(274)](Math[o(262)](a/2)-s)-1;return gsap.utils[o(260)](0,Math[o(289)](a/2),.5,2.1,p)},y:s=>{const o=x,p=s<Math[o(289)](a/2)?s:Math.ceil(a/2)-Math[o(274)](Math[o(262)](a/2)-s)-1;return gsap[o(283)][o(260)](0,Math[o(289)](a/2),0,60,p)},rotation:s=>{const o=x,p=s<Math[o(289)](a/2)?s:Math.ceil(a/2)-Math.abs(Math[o(262)](a/2)-s)-1;return s<a/2?gsap[o(283)][o(260)](0,Math.ceil(a/2),-4,0,p):gsap[o(283)][o(260)](0,Math.ceil(a/2),0,4,p)},filter:x(272)},{ease:"power2.inOut",y:0,rotation:0,scale:1,filter:x(264),scrollTrigger:{trigger:n,start:x(267),end:x(256),scrub:!0},stagger:{amount:.15,from:x(252)}})}}),N[t(314)](r=>{const x=t,c=[...r[x(251)](".word")];for(const[n,f]of c.entries()){const a=f.querySelectorAll(".char");gsap[x(284)](a,{"will-change":x(291),transformOrigin:(n%2?0:100)+"% "+(n%2?100:0)+"%",scale:0},{ease:x(310),scale:1,stagger:{each:.03,from:n%2?"end":x(241)},scrollTrigger:{trigger:f,start:x(313),end:x(242),scrub:!0}})}})};function d(g,t){var e=_();return d=function(i,l){i=i-287;var u=e[i];return u},d(g,t)}var y=d;(function(g,t){for(var e=d,i=g();;)try{var l=parseInt(e(290))/1*(-parseInt(e(297))/2)+-parseInt(e(287))/3+-parseInt(e(292))/4+-parseInt(e(294))/5*(-parseInt(e(296))/6)+-parseInt(e(291))/7+parseInt(e(289))/8*(parseInt(e(295))/9)+parseInt(e(288))/10;if(l===t)break;i.push(i.shift())}catch{i.push(i.shift())}})(_,470678),document[y(293)]("DOMContentLoaded",()=>{m(),M(textScrollPack2Elements)});function _(){var g=["addEventListener","5XUIjUn","16479shFtbC","4180818OKNhHo","1858WpzIts","646005WzDcWb","15486160eNvKoW","968NHULqL","336NWdlIk","4707822HmiWDe","3185068IOzBBE"];return _=function(){return g},_()}});
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@digitalmoves/text-scroll-effects-02",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "main": "dist/main.js",
6
+ "files": [
7
+ "dist",
8
+ "README.md",
9
+ "CHANGELOG.md",
10
+ "LICENSE"
11
+ ],
12
+ "license": "UNLICENSED",
13
+ "devDependencies": {},
14
+ "scripts": {
15
+ "dev": "vite",
16
+ "build": "vite build"
17
+ }
18
+ }