From a0e049e447d72a074b4e17a6cab7e035d6cf568c Mon Sep 17 00:00:00 2001 From: David Haz Date: Sat, 12 Jul 2025 12:05:16 +0300 Subject: [PATCH] Format ScrollReveal component and demo for improved readability and consistency --- .../code/TextAnimations/scrollRevealCode.ts | 6 +- .../ScrollReveal/ScrollReveal.vue | 286 +++++++++--------- src/demo/TextAnimations/ScrollRevealDemo.vue | 280 +++++++++-------- 3 files changed, 280 insertions(+), 292 deletions(-) diff --git a/src/constants/code/TextAnimations/scrollRevealCode.ts b/src/constants/code/TextAnimations/scrollRevealCode.ts index 1919eba..d60d817 100644 --- a/src/constants/code/TextAnimations/scrollRevealCode.ts +++ b/src/constants/code/TextAnimations/scrollRevealCode.ts @@ -1,5 +1,5 @@ -import code from '@content/TextAnimations/ScrollReveal/ScrollReveal.vue?raw' -import type { CodeObject } from '../../../types/code' +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`, @@ -23,4 +23,4 @@ export const scrollRevealCode: CodeObject = { import ScrollReveal from "./ScrollReveal.vue"; `, code -} \ No newline at end of file +}; diff --git a/src/content/TextAnimations/ScrollReveal/ScrollReveal.vue b/src/content/TextAnimations/ScrollReveal/ScrollReveal.vue index e8db1c2..b9dda72 100644 --- a/src/content/TextAnimations/ScrollReveal/ScrollReveal.vue +++ b/src/content/TextAnimations/ScrollReveal/ScrollReveal.vue @@ -1,165 +1,155 @@ - - - \ No newline at end of file + }, + { deep: true } +); + diff --git a/src/demo/TextAnimations/ScrollRevealDemo.vue b/src/demo/TextAnimations/ScrollRevealDemo.vue index 518ee48..65ab320 100644 --- a/src/demo/TextAnimations/ScrollRevealDemo.vue +++ b/src/demo/TextAnimations/ScrollRevealDemo.vue @@ -1,15 +1,8 @@