From 0b2321c7c3635a8505babd0c136ecc6b309f9fbc Mon Sep 17 00:00:00 2001 From: Utkarsh-Singhal-26 Date: Tue, 22 Jul 2025 19:01:14 +0530 Subject: [PATCH] Added animation --- src/constants/Categories.ts | 3 +- src/constants/Components.ts | 1 + .../code/Animations/stickerPeelCode.ts | 23 + .../Animations/StickerPeel/StickerPeel.vue | 401 ++++++++++++++++++ src/demo/Animations/StickerPeelDemo.vue | 151 +++++++ 5 files changed, 578 insertions(+), 1 deletion(-) create mode 100644 src/constants/code/Animations/stickerPeelCode.ts create mode 100644 src/content/Animations/StickerPeel/StickerPeel.vue create mode 100644 src/demo/Animations/StickerPeelDemo.vue diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 025fd7c..ac41eb1 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -1,5 +1,5 @@ // Highlighted sidebar items -export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Text Type', 'Glass Surface']; +export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Text Type', 'Glass Surface', 'Sticker Peel']; export const UPDATED = []; // Used for main sidebar navigation @@ -39,6 +39,7 @@ export const CATEGORIES = [ 'Splash Cursor', 'Pixel Transition', 'Target Cursor', + 'Sticker Peel', 'Ribbons', 'Glare Hover', 'Magnet Lines', diff --git a/src/constants/Components.ts b/src/constants/Components.ts index b196e9e..d543dc2 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -19,6 +19,7 @@ const animations = { 'shape-blur': () => import('../demo/Animations/ShapeBlurDemo.vue'), 'target-cursor': () => import('../demo/Animations/TargetCursorDemo.vue'), 'crosshair': () => import('../demo/Animations/CrosshairDemo.vue'), + 'sticker-peel': () => import('../demo/Animations/StickerPeelDemo.vue'), }; const textAnimations = { diff --git a/src/constants/code/Animations/stickerPeelCode.ts b/src/constants/code/Animations/stickerPeelCode.ts new file mode 100644 index 0000000..5b0b15d --- /dev/null +++ b/src/constants/code/Animations/stickerPeelCode.ts @@ -0,0 +1,23 @@ +import code from '@/content/Animations/StickerPeel/StickerPeel.vue?raw'; +import { createCodeObject } from '@/types/code'; + +export const stickerPeel = createCodeObject(code, 'Animations/StickerPeel', { + installation: `npm install gsap`, + usage: ` + +` +}); diff --git a/src/content/Animations/StickerPeel/StickerPeel.vue b/src/content/Animations/StickerPeel/StickerPeel.vue new file mode 100644 index 0000000..09bffa0 --- /dev/null +++ b/src/content/Animations/StickerPeel/StickerPeel.vue @@ -0,0 +1,401 @@ + + + + + diff --git a/src/demo/Animations/StickerPeelDemo.vue b/src/demo/Animations/StickerPeelDemo.vue new file mode 100644 index 0000000..b2d49e9 --- /dev/null +++ b/src/demo/Animations/StickerPeelDemo.vue @@ -0,0 +1,151 @@ + + + + +