diff --git a/src/components/common/PreviewText.vue b/src/components/common/PreviewText.vue new file mode 100644 index 0000000..f62cdf4 --- /dev/null +++ b/src/components/common/PreviewText.vue @@ -0,0 +1,33 @@ + + + + + diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 681548f..387767d 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -22,7 +22,8 @@ export const CATEGORIES = [ 'True Focus', 'Scroll Float', 'Scroll Reveal', - 'Rotating Text' + 'Rotating Text', + 'Glitch Text' ] }, { diff --git a/src/constants/Components.ts b/src/constants/Components.ts index 6ba057f..96716a7 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -27,7 +27,8 @@ const textAnimations = { 'true-focus': () => import("../demo/TextAnimations/TrueFocusDemo.vue"), 'scroll-float': () => import("../demo/TextAnimations/ScrollFloatDemo.vue"), 'scroll-reveal': ()=> import("../demo/TextAnimations/ScrollRevealDemo.vue"), - 'rotating-text': ()=> import("../demo/TextAnimations/RotatingTextDemo.vue") + 'rotating-text': ()=> import("../demo/TextAnimations/RotatingTextDemo.vue"), + 'glitch-text': () => import("../demo/TextAnimations/GlitchTextDemo.vue"), }; const components = { diff --git a/src/constants/code/TextAnimations/glitchTextCode.ts b/src/constants/code/TextAnimations/glitchTextCode.ts new file mode 100644 index 0000000..0c92253 --- /dev/null +++ b/src/constants/code/TextAnimations/glitchTextCode.ts @@ -0,0 +1,19 @@ +import code from '@/content/TextAnimations/GlitchText/GlitchText.vue?raw'; +import type { CodeObject } from '../../../types/code'; + +export const glitchText: CodeObject = { + cli: `npx jsrepo add https://vue-bits.dev/ui/TextAnimations/GlitchText`, + usage: ` + +`, + code +}; diff --git a/src/content/TextAnimations/GlitchText/GlitchText.vue b/src/content/TextAnimations/GlitchText/GlitchText.vue new file mode 100644 index 0000000..b511ba4 --- /dev/null +++ b/src/content/TextAnimations/GlitchText/GlitchText.vue @@ -0,0 +1,189 @@ + + + + + diff --git a/src/demo/TextAnimations/GlitchTextDemo.vue b/src/demo/TextAnimations/GlitchTextDemo.vue new file mode 100644 index 0000000..5cf850e --- /dev/null +++ b/src/demo/TextAnimations/GlitchTextDemo.vue @@ -0,0 +1,94 @@ + + +