From ea8a04eb3bccd15bf2aae8aa8e4a0e1b309e7c8f Mon Sep 17 00:00:00 2001 From: zubairrafi Date: Sat, 12 Jul 2025 02:44:24 +0600 Subject: [PATCH] Scroll Float added in text animation section Signed-off-by: zubairrafi --- src/constants/Categories.ts | 1 + src/constants/Components.ts | 1 + .../code/Components/scrollFloatCode.ts | 25 +++ .../ScrollFloat/ScrollFloat.vue | 141 +++++++++++++ src/demo/TextAnimations/ScrollFloatDemo.vue | 191 ++++++++++++++++++ 5 files changed, 359 insertions(+) create mode 100644 src/constants/code/Components/scrollFloatCode.ts create mode 100644 src/content/TextAnimations/ScrollFloat/ScrollFloat.vue create mode 100644 src/demo/TextAnimations/ScrollFloatDemo.vue diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 9234c53..6dae674 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -19,6 +19,7 @@ export const CATEGORIES = [ 'Falling Text', 'Text Cursor', 'Decrypted Text', + 'Scroll Float' ] }, { diff --git a/src/constants/Components.ts b/src/constants/Components.ts index d1c9376..ea07b7e 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -23,6 +23,7 @@ const textAnimations = { 'falling-text': () => import("../demo/TextAnimations/FallingTextDemo.vue"), 'text-cursor': () => import("../demo/TextAnimations/TextCursorDemo.vue"), 'decrypted-text': () => import("../demo/TextAnimations/DecryptedTextDemo.vue"), + 'scroll-float': () => import("../demo/TextAnimations/ScrollFloatDemo.vue"), }; const components = { diff --git a/src/constants/code/Components/scrollFloatCode.ts b/src/constants/code/Components/scrollFloatCode.ts new file mode 100644 index 0000000..d4cd34b --- /dev/null +++ b/src/constants/code/Components/scrollFloatCode.ts @@ -0,0 +1,25 @@ +import code from '@content/TextAnimations/ScrollFloat/ScrollFloat.vue?raw' +import type { CodeObject } from '../../../types/code' + +export const scrollFloatCode: CodeObject = { + cli: `npx jsrepo add https://vue-bits.dev/ui/Components/ProfileCard`, + usage: ` + +`, + code +} \ No newline at end of file diff --git a/src/content/TextAnimations/ScrollFloat/ScrollFloat.vue b/src/content/TextAnimations/ScrollFloat/ScrollFloat.vue new file mode 100644 index 0000000..b12e5a4 --- /dev/null +++ b/src/content/TextAnimations/ScrollFloat/ScrollFloat.vue @@ -0,0 +1,141 @@ + + + + + \ No newline at end of file diff --git a/src/demo/TextAnimations/ScrollFloatDemo.vue b/src/demo/TextAnimations/ScrollFloatDemo.vue new file mode 100644 index 0000000..fc0eda0 --- /dev/null +++ b/src/demo/TextAnimations/ScrollFloatDemo.vue @@ -0,0 +1,191 @@ + + + + \ No newline at end of file