mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 14:39:30 -07:00
documentation structure
This commit is contained in:
27
src/constants/code/Animations/fadeContentCode.ts
Normal file
27
src/constants/code/Animations/fadeContentCode.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import code from '@content/Animations/FadeContent/FadeContent.vue?raw'
|
||||
import type { CodeObject } from '../../../types/code'
|
||||
|
||||
export const fadeContent: CodeObject = {
|
||||
cli: `npx jsrepo add https://vuebits.dev/Animations/FadeContent`,
|
||||
usage: `<template>
|
||||
<FadeContent
|
||||
:blur="true"
|
||||
:duration="1000"
|
||||
:delay="200"
|
||||
:threshold="0.1"
|
||||
:initial-opacity="0"
|
||||
easing="ease-out"
|
||||
class-name="my-fade-content"
|
||||
>
|
||||
<div class="content-to-fade">
|
||||
<h2>This content will fade in!</h2>
|
||||
<p>It appears when scrolled into view.</p>
|
||||
</div>
|
||||
</FadeContent>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import FadeContent from "./FadeContent.vue";
|
||||
</script>`,
|
||||
code
|
||||
}
|
||||
Reference in New Issue
Block a user