diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 53a91ec..8285535 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -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', diff --git a/src/constants/Components.ts b/src/constants/Components.ts index 326c231..09b41f7 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -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 = { diff --git a/src/constants/code/Animations/ghostCursorCode.ts b/src/constants/code/Animations/ghostCursorCode.ts new file mode 100644 index 0000000..dd671bc --- /dev/null +++ b/src/constants/code/Animations/ghostCursorCode.ts @@ -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: ` + +` +}); diff --git a/src/content/Animations/GhostCursor/GhostCursor.vue b/src/content/Animations/GhostCursor/GhostCursor.vue new file mode 100644 index 0000000..3dcd31b --- /dev/null +++ b/src/content/Animations/GhostCursor/GhostCursor.vue @@ -0,0 +1,557 @@ + + + diff --git a/src/demo/Animations/GhostCursorDemo.vue b/src/demo/Animations/GhostCursorDemo.vue new file mode 100644 index 0000000..793ac5c --- /dev/null +++ b/src/demo/Animations/GhostCursorDemo.vue @@ -0,0 +1,167 @@ + + + + +