From 7a780b81144ddd25caa25358e5ced8b503437857 Mon Sep 17 00:00:00 2001 From: zubairrafi Date: Sat, 12 Jul 2025 12:43:14 +0600 Subject: [PATCH] Scroll Reveal added to text animations Signed-off-by: zubairrafi --- src/constants/Categories.ts | 1 + src/constants/Components.ts | 3 +- .../code/TextAnimations/scrollRevealCode.ts | 26 +++ .../ScrollReveal/ScrollReveal.vue | 165 ++++++++++++++ src/demo/TextAnimations/ScrollRevealDemo.vue | 205 ++++++++++++++++++ 5 files changed, 399 insertions(+), 1 deletion(-) create mode 100644 src/constants/code/TextAnimations/scrollRevealCode.ts create mode 100644 src/content/TextAnimations/ScrollReveal/ScrollReveal.vue create mode 100644 src/demo/TextAnimations/ScrollRevealDemo.vue diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index f70a632..151e61d 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -21,6 +21,7 @@ export const CATEGORIES = [ 'Decrypted Text', 'True Focus', 'Scroll Float', + 'Scroll Reveal', ] }, { diff --git a/src/constants/Components.ts b/src/constants/Components.ts index f206da7..16a560a 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -25,8 +25,9 @@ const textAnimations = { 'decrypted-text': () => import("../demo/TextAnimations/DecryptedTextDemo.vue"), 'true-focus': () => import("../demo/TextAnimations/TrueFocusDemo.vue"), 'scroll-float': () => import("../demo/TextAnimations/ScrollFloatDemo.vue"), + 'scroll-reveal': ()=> import("../demo/TextAnimations/ScrollRevealDemo.vue"), }; - + const components = { 'masonry': () => import("../demo/Components/MasonryDemo.vue"), 'profile-card': () => import("../demo/Components/ProfileCardDemo.vue"), diff --git a/src/constants/code/TextAnimations/scrollRevealCode.ts b/src/constants/code/TextAnimations/scrollRevealCode.ts new file mode 100644 index 0000000..1919eba --- /dev/null +++ b/src/constants/code/TextAnimations/scrollRevealCode.ts @@ -0,0 +1,26 @@ +import code from '@content/TextAnimations/ScrollReveal/ScrollReveal.vue?raw' +import type { CodeObject } from '../../../types/code' + +export const scrollRevealCode: CodeObject = { + cli: `npx jsrepo add https://vue-bits.dev/ui/TextAnimations/ScrollReveal`, + usage: ` + +`, + code +} \ No newline at end of file diff --git a/src/content/TextAnimations/ScrollReveal/ScrollReveal.vue b/src/content/TextAnimations/ScrollReveal/ScrollReveal.vue new file mode 100644 index 0000000..e8db1c2 --- /dev/null +++ b/src/content/TextAnimations/ScrollReveal/ScrollReveal.vue @@ -0,0 +1,165 @@ + + + + \ No newline at end of file diff --git a/src/demo/TextAnimations/ScrollRevealDemo.vue b/src/demo/TextAnimations/ScrollRevealDemo.vue new file mode 100644 index 0000000..518ee48 --- /dev/null +++ b/src/demo/TextAnimations/ScrollRevealDemo.vue @@ -0,0 +1,205 @@ + + + + + \ No newline at end of file