mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 14:39:30 -07:00
Create <TrueFocus /> text animation
This commit is contained in:
22
src/constants/code/TextAnimations/trueFocusCode.ts
Normal file
22
src/constants/code/TextAnimations/trueFocusCode.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import code from "@/content/TextAnimations/TrueFocus/TrueFocus.vue?raw";
|
||||
import type { CodeObject } from "../../../types/code";
|
||||
|
||||
export const trueFocus: CodeObject = {
|
||||
cli: `npx jsrepo add https://vue-bits.dev/ui/TextAnimations/TrueFocus`,
|
||||
installation: `npm install motion-v`,
|
||||
usage: `<template>
|
||||
<TrueFocus
|
||||
sentence="True Focus"
|
||||
manualMode="false"
|
||||
blurAmount="5"
|
||||
borderColor="red"
|
||||
animationDuration="2"
|
||||
pauseBetweenAnimations="1"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import TrueFocus from "./TrueFocus.vue";
|
||||
</script>`,
|
||||
code,
|
||||
};
|
||||
Reference in New Issue
Block a user