diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index f70a632..20a5126 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -72,6 +72,7 @@ export const CATEGORIES = [ 'Squares', 'Iridescence', 'Threads', + 'Grid Motion' ], } ]; diff --git a/src/constants/Components.ts b/src/constants/Components.ts index f206da7..1bae9f4 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -58,6 +58,7 @@ const backgrounds = { 'threads': () => import("../demo/Backgrounds/ThreadsDemo.vue"), 'aurora': () => import("../demo/Backgrounds/AuroraDemo.vue"), 'beams': () => import("../demo/Backgrounds/BeamsDemo.vue"), + 'grid-motion': () => import("../demo/Backgrounds/GridMotionDemo.vue"), }; export const componentMap = { diff --git a/src/constants/code/Backgrounds/gridMotionCode.ts b/src/constants/code/Backgrounds/gridMotionCode.ts new file mode 100644 index 0000000..0203dc9 --- /dev/null +++ b/src/constants/code/Backgrounds/gridMotionCode.ts @@ -0,0 +1,45 @@ +import code from "@content/Backgrounds/GridMotion/GridMotion.vue?raw"; +import type { CodeObject } from "../../../types/code"; + +export const gridMotion: CodeObject = { + cli: `npx jsrepo add https://vue-bits.dev/ui/Backgrounds/GridMotion`, + installation: `npm i gsap`, + usage: ` + +`, + code, +}; diff --git a/src/content/Backgrounds/GridMotion/GridMotion.vue b/src/content/Backgrounds/GridMotion/GridMotion.vue new file mode 100644 index 0000000..ee33f4b --- /dev/null +++ b/src/content/Backgrounds/GridMotion/GridMotion.vue @@ -0,0 +1,116 @@ + + + diff --git a/src/demo/Backgrounds/GridMotionDemo.vue b/src/demo/Backgrounds/GridMotionDemo.vue new file mode 100644 index 0000000..5d8654e --- /dev/null +++ b/src/demo/Backgrounds/GridMotionDemo.vue @@ -0,0 +1,85 @@ + + +