diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 9234c53..fd19b5f 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -19,6 +19,7 @@ export const CATEGORIES = [ 'Falling Text', 'Text Cursor', 'Decrypted Text', + 'Scramble Text', ] }, { diff --git a/src/constants/Components.ts b/src/constants/Components.ts index d1c9376..b993473 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -23,6 +23,7 @@ const textAnimations = { 'falling-text': () => import("../demo/TextAnimations/FallingTextDemo.vue"), 'text-cursor': () => import("../demo/TextAnimations/TextCursorDemo.vue"), 'decrypted-text': () => import("../demo/TextAnimations/DecryptedTextDemo.vue"), + 'scramble-text': () => import("../demo/TextAnimations/ScrambleTextDemo.vue"), }; const components = { diff --git a/src/constants/code/TextAnimations/scrambleTextCode.ts b/src/constants/code/TextAnimations/scrambleTextCode.ts new file mode 100644 index 0000000..581fa27 --- /dev/null +++ b/src/constants/code/TextAnimations/scrambleTextCode.ts @@ -0,0 +1,28 @@ +import code from '@content/TextAnimations/ScrambleText/ScrambleText.vue?raw' +import type { CodeObject } from '../../../types/code' + +export const scrambleTextCode: CodeObject = { + cli: `npx jsrepo add https://vue-bits.dev/ui/TextAnimations/ScrambleText`, + installation: `npm install gsap`, + usage: `// Component inspired by Tom Miller from the GSAP community +// https://codepen.io/creativeocean/pen/NPWLwJM + + + +`, + code +} diff --git a/src/content/TextAnimations/ScrambleText/ScrambleText.vue b/src/content/TextAnimations/ScrambleText/ScrambleText.vue new file mode 100644 index 0000000..9db15d1 --- /dev/null +++ b/src/content/TextAnimations/ScrambleText/ScrambleText.vue @@ -0,0 +1,114 @@ + + + diff --git a/src/demo/TextAnimations/ScrambleTextDemo.vue b/src/demo/TextAnimations/ScrambleTextDemo.vue new file mode 100644 index 0000000..0f1b722 --- /dev/null +++ b/src/demo/TextAnimations/ScrambleTextDemo.vue @@ -0,0 +1,124 @@ + + +