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:
@@ -33,6 +33,7 @@ export const CATEGORIES = [
|
||||
subcategories: [
|
||||
'Animated Content',
|
||||
'Fade Content',
|
||||
'Noise',
|
||||
'Splash Cursor',
|
||||
'Pixel Transition',
|
||||
'Ribbons',
|
||||
|
||||
@@ -11,6 +11,7 @@ const animations = {
|
||||
'cubes': () => import('../demo/Animations/CubesDemo.vue'),
|
||||
'count-up': () => import('../demo/Animations/CountUpDemo.vue'),
|
||||
'splash-cursor': () => import('../demo/Animations/SplashCursorDemo.vue'),
|
||||
'noise': () => import('../demo/Animations/NoiseDemo.vue'),
|
||||
};
|
||||
|
||||
const textAnimations = {
|
||||
|
||||
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