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 @@ + + + + +