mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-09 00:19:31 -06:00
feat(text-animations): add GlitchText component
This commit is contained in:
@@ -22,7 +22,8 @@ export const CATEGORIES = [
|
||||
'True Focus',
|
||||
'Scroll Float',
|
||||
'Scroll Reveal',
|
||||
'Rotating Text'
|
||||
'Rotating Text',
|
||||
'Glitch Text'
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
19
src/constants/code/TextAnimations/glitchTextCode.ts
Normal file
19
src/constants/code/TextAnimations/glitchTextCode.ts
Normal file
@@ -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: `<template>
|
||||
<GlitchText
|
||||
children="Vue Bits"
|
||||
:speed="0.5"
|
||||
:enable-shadows="true"
|
||||
:enable-on-hover="false"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import GlitchText from "./GlitchText.vue";
|
||||
</script>`,
|
||||
code
|
||||
};
|
||||
Reference in New Issue
Block a user