FEAT: 🎉 Added <GhostCursor /> animation

This commit is contained in:
Utkarsh-Singhal-26
2025-10-27 16:28:00 +05:30
parent 27f367f58c
commit f4663a64c7
5 changed files with 754 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
// Highlighted sidebar items
export const NEW = ['Laser Flow', 'Dome Gallery', 'Liquid Ether', 'Staggered Menu', 'Pixel Blast', 'Gradual Blur', 'Gradient Blinds', 'Bubble Menu', 'Prism', 'Plasma', 'Electric Border', 'Target Cursor', 'Pill Nav', 'Card Nav', 'Logo Loop', 'Prismatic Burst'];
export const NEW = ['Ghost Cursor', 'Laser Flow', 'Dome Gallery', 'Liquid Ether', 'Staggered Menu', 'Pixel Blast', 'Gradient Blinds', 'Bubble Menu', 'Prism', 'Plasma', 'Pill Nav', 'Card Nav', 'Prismatic Burst'];
export const UPDATED = [];
// Used for main sidebar navigation
@@ -43,6 +43,7 @@ export const CATEGORIES = [
'Logo Loop',
'Pixel Transition',
'Target Cursor',
'Ghost Cursor',
'Electric Border',
'Sticker Peel',
'Ribbons',

View File

@@ -24,6 +24,7 @@ const animations = {
'electric-border': () => import('../demo/Animations/ElectricBorderDemo.vue'),
'gradual-blur': () => import('../demo/Animations/GradualBlurDemo.vue'),
'laser-flow': () => import('../demo/Animations/LaserFlowDemo.vue'),
'ghost-cursor': () => import('../demo/Animations/GhostCursorDemo.vue'),
};
const textAnimations = {

View File

@@ -0,0 +1,27 @@
import code from '@/content/Animations/GhostCursor/GhostCursor.vue?raw';
import { createCodeObject } from '@/types/code';
export const ghostCursor = createCodeObject(code, 'Animations/GhostCursor', {
installation: `npm install three`,
usage: `<template>
<div style="height: 600px; position: relative;">
<GhostCursor
color="#A0FFBC"
:brightness="1"
:edgeIntensity="0"
:trailLength="50"
:inertia="0.5"
:grainIntensity="0.05"
:bloomStrength="0.1"
:bloomRadius="1.0"
:bloomThreshold="0.025"
:fadeDelayMs="1000"
:fadeDurationMs="1500"
/>
</div>
</template>
<script setup lang="ts">
import GhostCursor from './GhostCursor.vue'
</script>`
});