mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 22:49:31 -07:00
Component Boom
This commit is contained in:
29
src/constants/code/Animations/glareHoverCode.ts
Normal file
29
src/constants/code/Animations/glareHoverCode.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import code from '@/content/Animations/GlareHover/GlareHover.vue?raw'
|
||||
import type { CodeObject } from '@/types/code'
|
||||
|
||||
export const glareHover: CodeObject = {
|
||||
cli: `npx jsrepo add https://vue-bits.dev/ui/Animations/GlareHover`,
|
||||
usage: `<template>
|
||||
<GlareHover
|
||||
width="400px"
|
||||
height="300px"
|
||||
background="#060010"
|
||||
border-color="#271E37"
|
||||
border-radius="20px"
|
||||
glare-color="#ffffff"
|
||||
:glare-opacity="0.3"
|
||||
:glare-size="300"
|
||||
:transition-duration="800"
|
||||
:play-once="false"
|
||||
>
|
||||
<div class="text-center text-5xl font-black text-white">
|
||||
Hover Me
|
||||
</div>
|
||||
</GlareHover>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import GlareHover from "./GlareHover.vue";
|
||||
</script>`,
|
||||
code
|
||||
}
|
||||
Reference in New Issue
Block a user