From d3187f71c78fd59a8c389358816201d0de8343d0 Mon Sep 17 00:00:00 2001 From: Purshottam Jain Date: Mon, 21 Jul 2025 12:56:16 +0530 Subject: [PATCH 1/2] [ADDED: TEXT TYPE ANIMATION] --- src/constants/Categories.ts | 5 +- src/constants/Components.ts | 1 + .../code/TextAnimations/textTypeCode.ts | 19 ++ .../TextAnimations/TextType/TextType.vue | 171 ++++++++++++++ src/demo/TextAnimations/TextTypeDemo.vue | 223 ++++++++++++++++++ 5 files changed, 417 insertions(+), 2 deletions(-) create mode 100644 src/constants/code/TextAnimations/textTypeCode.ts create mode 100644 src/content/TextAnimations/TextType/TextType.vue create mode 100644 src/demo/TextAnimations/TextTypeDemo.vue diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 3227adc..861c2c8 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -1,5 +1,5 @@ // Highlighted sidebar items -export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy']; +export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Text Type']; export const UPDATED = []; // Used for main sidebar navigation @@ -26,7 +26,8 @@ export const CATEGORIES = [ 'Scroll Reveal', 'Rotating Text', 'Glitch Text', - 'Scroll Velocity' + 'Scroll Velocity', + 'Text Type' ] }, { diff --git a/src/constants/Components.ts b/src/constants/Components.ts index 05ddf75..f2b49be 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -42,6 +42,7 @@ const textAnimations = { 'rotating-text': () => import("../demo/TextAnimations/RotatingTextDemo.vue"), 'glitch-text': () => import("../demo/TextAnimations/GlitchTextDemo.vue"), 'scroll-velocity': () => import("../demo/TextAnimations/ScrollVelocityDemo.vue"), + 'text-type': () => import("../demo/TextAnimations/TextTypeDemo.vue"), }; const components = { diff --git a/src/constants/code/TextAnimations/textTypeCode.ts b/src/constants/code/TextAnimations/textTypeCode.ts new file mode 100644 index 0000000..ecb947b --- /dev/null +++ b/src/constants/code/TextAnimations/textTypeCode.ts @@ -0,0 +1,19 @@ +import code from '@/content/TextAnimations/TextType/TextType.vue?raw'; +import { createCodeObject } from '@/types/code'; + +export const textType = createCodeObject(code, 'TextAnimations/TextType', { + installation: `npm install gsap`, + usage: ` + +` +}); diff --git a/src/content/TextAnimations/TextType/TextType.vue b/src/content/TextAnimations/TextType/TextType.vue new file mode 100644 index 0000000..f270842 --- /dev/null +++ b/src/content/TextAnimations/TextType/TextType.vue @@ -0,0 +1,171 @@ + + + diff --git a/src/demo/TextAnimations/TextTypeDemo.vue b/src/demo/TextAnimations/TextTypeDemo.vue new file mode 100644 index 0000000..46ef2c1 --- /dev/null +++ b/src/demo/TextAnimations/TextTypeDemo.vue @@ -0,0 +1,223 @@ + + + + + From 197b521311b3a7eac4534e728af246f0ae3aecb6 Mon Sep 17 00:00:00 2001 From: Purshottam Jain Date: Mon, 21 Jul 2025 13:49:10 +0530 Subject: [PATCH 2/2] Refactor demo container styles for improved layout and spacing --- src/demo/TextAnimations/TextTypeDemo.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/demo/TextAnimations/TextTypeDemo.vue b/src/demo/TextAnimations/TextTypeDemo.vue index 46ef2c1..05a131d 100644 --- a/src/demo/TextAnimations/TextTypeDemo.vue +++ b/src/demo/TextAnimations/TextTypeDemo.vue @@ -1,7 +1,7 @@