diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 1dadbea..49275dd 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -47,6 +47,7 @@ export const CATEGORIES = [ 'Blob Cursor', 'Meta Balls', 'Image Trail', + 'Target Cursor', ] }, { diff --git a/src/constants/Components.ts b/src/constants/Components.ts index 27f8cfa..b5e5470 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -15,6 +15,7 @@ const animations = { 'blob-cursor': () => import('../demo/Animations/BlobCursorDemo.vue'), 'meta-balls': () => import('../demo/Animations/MetaBallsDemo.vue'), 'image-trail': () => import('../demo/Animations/ImageTrailDemo.vue'), + 'target-cursor': () => import('../demo/Animations/TargetCursorDemo.vue'), }; const textAnimations = { diff --git a/src/constants/code/Animations/targetCursorCode.ts b/src/constants/code/Animations/targetCursorCode.ts new file mode 100644 index 0000000..bd22113 --- /dev/null +++ b/src/constants/code/Animations/targetCursorCode.ts @@ -0,0 +1,22 @@ +import code from '@/content/Animations/TargetCursor/TargetCursor.vue?raw'; +import type { CodeObject } from '../../../types/code'; + +export const targetCursor: CodeObject = { + cli: `npx jsrepo add https://vue-bits.dev/ui/Animations/TargetCursor`, + installation: `npm install gsap`, + usage: ` + +`, + code +}; diff --git a/src/content/Animations/TargetCursor/TargetCursor.vue b/src/content/Animations/TargetCursor/TargetCursor.vue new file mode 100644 index 0000000..75cc9dd --- /dev/null +++ b/src/content/Animations/TargetCursor/TargetCursor.vue @@ -0,0 +1,339 @@ + + + diff --git a/src/demo/Animations/TargetCursorDemo.vue b/src/demo/Animations/TargetCursorDemo.vue new file mode 100644 index 0000000..bfc038f --- /dev/null +++ b/src/demo/Animations/TargetCursorDemo.vue @@ -0,0 +1,103 @@ + + + + +