diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 3227adc..861c2c8 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']; +export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Text Type']; export const UPDATED = []; // Used for main sidebar navigation @@ -26,7 +26,8 @@ export const CATEGORIES = [ 'Scroll Reveal', 'Rotating Text', 'Glitch Text', - 'Scroll Velocity' + 'Scroll Velocity', + 'Text Type' ] }, { diff --git a/src/constants/Components.ts b/src/constants/Components.ts index 05ddf75..f2b49be 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -42,6 +42,7 @@ const textAnimations = { 'rotating-text': () => import("../demo/TextAnimations/RotatingTextDemo.vue"), 'glitch-text': () => import("../demo/TextAnimations/GlitchTextDemo.vue"), 'scroll-velocity': () => import("../demo/TextAnimations/ScrollVelocityDemo.vue"), + 'text-type': () => import("../demo/TextAnimations/TextTypeDemo.vue"), }; const components = { diff --git a/src/constants/code/TextAnimations/textTypeCode.ts b/src/constants/code/TextAnimations/textTypeCode.ts new file mode 100644 index 0000000..ecb947b --- /dev/null +++ b/src/constants/code/TextAnimations/textTypeCode.ts @@ -0,0 +1,19 @@ +import code from '@/content/TextAnimations/TextType/TextType.vue?raw'; +import { createCodeObject } from '@/types/code'; + +export const textType = createCodeObject(code, 'TextAnimations/TextType', { + installation: `npm install gsap`, + usage: ` + +` +}); diff --git a/src/content/TextAnimations/TextType/TextType.vue b/src/content/TextAnimations/TextType/TextType.vue new file mode 100644 index 0000000..f270842 --- /dev/null +++ b/src/content/TextAnimations/TextType/TextType.vue @@ -0,0 +1,171 @@ + + + diff --git a/src/demo/TextAnimations/TextTypeDemo.vue b/src/demo/TextAnimations/TextTypeDemo.vue new file mode 100644 index 0000000..05a131d --- /dev/null +++ b/src/demo/TextAnimations/TextTypeDemo.vue @@ -0,0 +1,228 @@ + + + + +