From 7d1e9b00756fffd5d44439961dad86e785bd61ab Mon Sep 17 00:00:00 2001 From: Utkarsh-Singhal-26 Date: Sun, 1 Feb 2026 13:23:13 +0530 Subject: [PATCH] [ REFACT ] : ShinyText Text Animation --- .../code/TextAnimations/shinyTextCode.ts | 17 +- .../TextAnimations/ShinyText/ShinyText.vue | 148 ++++++++++++++---- src/demo/TextAnimations/ShinyTextDemo.vue | 128 ++++++++++----- 3 files changed, 221 insertions(+), 72 deletions(-) diff --git a/src/constants/code/TextAnimations/shinyTextCode.ts b/src/constants/code/TextAnimations/shinyTextCode.ts index a2952a4..8014f84 100644 --- a/src/constants/code/TextAnimations/shinyTextCode.ts +++ b/src/constants/code/TextAnimations/shinyTextCode.ts @@ -1,13 +1,20 @@ -import code from '@content/TextAnimations/ShinyText/ShinyText.vue?raw'; import { createCodeObject } from '@/types/code'; +import code from '@content/TextAnimations/ShinyText/ShinyText.vue?raw'; export const shinyText = createCodeObject(code, 'TextAnimations/ShinyText', { + installation: `npm install motion-v`, usage: ` diff --git a/src/content/TextAnimations/ShinyText/ShinyText.vue b/src/content/TextAnimations/ShinyText/ShinyText.vue index 2545abb..e7c0c30 100644 --- a/src/content/TextAnimations/ShinyText/ShinyText.vue +++ b/src/content/TextAnimations/ShinyText/ShinyText.vue @@ -1,49 +1,135 @@ - - diff --git a/src/demo/TextAnimations/ShinyTextDemo.vue b/src/demo/TextAnimations/ShinyTextDemo.vue index 90ab624..e87205f 100644 --- a/src/demo/TextAnimations/ShinyTextDemo.vue +++ b/src/demo/TextAnimations/ShinyTextDemo.vue @@ -1,33 +1,31 @@