diff --git a/package.json b/package.json index 9071027..7aa6ec2 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "@wdns/vue-code-block": "^2.3.5", "gsap": "^3.13.0", "lenis": "^1.3.8", + "mathjs": "^14.6.0", "matter-js": "^0.20.0", "motion-v": "^1.5.0", "ogl": "^1.0.11", diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 0b11deb..d0e48da 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -1,5 +1,5 @@ // Highlighted sidebar items -export const NEW = ['Gradient Blinds', 'Bubble Menu', 'Prism', 'Plasma', 'Electric Border', 'Target Cursor', 'Pill Nav', 'Card Nav', 'Logo Loop', 'Prismatic Burst']; +export const NEW = ['Gradual Blur', 'Gradient Blinds', 'Bubble Menu', 'Prism', 'Plasma', 'Electric Border', 'Target Cursor', 'Pill Nav', 'Card Nav', 'Logo Loop', 'Prismatic Burst']; export const UPDATED = []; // Used for main sidebar navigation @@ -36,6 +36,7 @@ export const CATEGORIES = [ subcategories: [ 'Animated Content', 'Fade Content', + 'Gradual Blur', 'Noise', 'Splash Cursor', 'Logo Loop', diff --git a/src/constants/Components.ts b/src/constants/Components.ts index b4ba2bd..e22849b 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -22,6 +22,7 @@ const animations = { 'crosshair': () => import('../demo/Animations/CrosshairDemo.vue'), 'sticker-peel': () => import('../demo/Animations/StickerPeelDemo.vue'), 'electric-border': () => import('../demo/Animations/ElectricBorderDemo.vue'), + 'gradual-blur': () => import('../demo/Animations/GradualBlurDemo.vue'), }; const textAnimations = { diff --git a/src/constants/code/Animations/gradualBlurCode.ts b/src/constants/code/Animations/gradualBlurCode.ts new file mode 100644 index 0000000..3a4d480 --- /dev/null +++ b/src/constants/code/Animations/gradualBlurCode.ts @@ -0,0 +1,11 @@ +import code from '@/content/Animations/GradualBlur/GradualBlur.vue?raw'; +import { createCodeObject } from '@/types/code'; + +export const gradualBlur = createCodeObject(code, 'Animations/GradualBlur', { + installation: `npm install mathjs`, + usage: ` + +` +}); diff --git a/src/content/Animations/GradualBlur/GradualBlur.vue b/src/content/Animations/GradualBlur/GradualBlur.vue new file mode 100644 index 0000000..27e8450 --- /dev/null +++ b/src/content/Animations/GradualBlur/GradualBlur.vue @@ -0,0 +1,350 @@ + + + diff --git a/src/demo/Animations/GradualBlurDemo.vue b/src/demo/Animations/GradualBlurDemo.vue new file mode 100644 index 0000000..e658060 --- /dev/null +++ b/src/demo/Animations/GradualBlurDemo.vue @@ -0,0 +1,251 @@ + + + + +