mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-09 00:19:31 -06:00
Create <PixelTrail /> animation
This commit is contained in:
@@ -55,6 +55,7 @@ export const CATEGORIES = [
|
||||
'Magnet Lines',
|
||||
'Metallic Paint',
|
||||
'Noise',
|
||||
'Pixel Trail',
|
||||
'Pixel Transition',
|
||||
'Ribbons',
|
||||
'Shape Blur',
|
||||
|
||||
@@ -25,6 +25,7 @@ const animations = {
|
||||
'gradual-blur': () => import('../demo/Animations/GradualBlurDemo.vue'),
|
||||
'laser-flow': () => import('../demo/Animations/LaserFlowDemo.vue'),
|
||||
'ghost-cursor': () => import('../demo/Animations/GhostCursorDemo.vue'),
|
||||
'pixel-trail': () => import('../demo/Animations/PixelTrailDemo.vue'),
|
||||
};
|
||||
|
||||
const textAnimations = {
|
||||
|
||||
@@ -222,6 +222,14 @@ export const componentMetadata: ComponentMetadata = {
|
||||
docsUrl: 'https://vue-bits.dev/text-animations/count-up',
|
||||
tags: []
|
||||
},
|
||||
'Animations/PixelTrail': {
|
||||
videoUrl: '/assets/videos/pixeltrail.webm',
|
||||
description: 'Pixel grid trail effect that follows cursor movement with customizable gooey filter.',
|
||||
category: 'Animations',
|
||||
name: 'PixelTrail',
|
||||
docsUrl: 'https://vue-bits.dev/animations/pixel-trail',
|
||||
tags: []
|
||||
},
|
||||
|
||||
//! Text Animations -------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
22
src/constants/code/Animations/pixelTrailCode.ts
Normal file
22
src/constants/code/Animations/pixelTrailCode.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import code from '@/content/Animations/PixelTrail/PixelTrail.vue?raw';
|
||||
import { createCodeObject } from '@/types/code';
|
||||
|
||||
export const pixelTrail = createCodeObject(code, 'Animations/PixelTrail', {
|
||||
installation: `npm install three @types/three`,
|
||||
usage: `<template>
|
||||
<div class="relative w-full h-[400px]">
|
||||
<PixelTrail
|
||||
:grid-size="50"
|
||||
:trail-size="0.1"
|
||||
:max-age="250"
|
||||
:interpolate="5"
|
||||
color="#5227FF"
|
||||
:gooey-filter="{ id: 'goo-filter', strength: 2 }"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import PixelTrail from "./PixelTrail.vue";
|
||||
</script>`
|
||||
});
|
||||
Reference in New Issue
Block a user