mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 14:39:30 -07:00
Add Noise animation component and demo with adjustable parameters
This commit is contained in:
19
src/constants/code/Animations/noiseCode.ts
Normal file
19
src/constants/code/Animations/noiseCode.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import code from '@content/Animations/Noise/Noise.vue?raw';
|
||||
import type { CodeObject } from '../../../types/code';
|
||||
|
||||
export const noise: CodeObject = {
|
||||
cli: `npx jsrepo add https://vue-bits.dev/ui/Animations/Noise`,
|
||||
usage: `<template>
|
||||
<Noise
|
||||
:pattern-size="250"
|
||||
:pattern-scale-x="1"
|
||||
:pattern-scale-y="1"
|
||||
:pattern-alpha="10"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import Noise from './Noise.vue'
|
||||
</script>`,
|
||||
code
|
||||
};
|
||||
Reference in New Issue
Block a user