mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 14:39:30 -07:00
[ADDED: TEXT TYPE ANIMATION]
This commit is contained in:
19
src/constants/code/TextAnimations/textTypeCode.ts
Normal file
19
src/constants/code/TextAnimations/textTypeCode.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import code from '@/content/TextAnimations/TextType/TextType.vue?raw';
|
||||
import { createCodeObject } from '@/types/code';
|
||||
|
||||
export const textType = createCodeObject(code, 'TextAnimations/TextType', {
|
||||
installation: `npm install gsap`,
|
||||
usage: `<template>
|
||||
<TextType
|
||||
:text="['Text typing effect', 'for your websites', 'Happy coding!']"
|
||||
:typingSpeed="75"
|
||||
:pauseDuration="1500"
|
||||
:showCursor="true"
|
||||
cursorCharacter="|"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import TextType from "./TextType.vue";
|
||||
</script>`
|
||||
});
|
||||
Reference in New Issue
Block a user