diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 021944a..527592d 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -21,7 +21,8 @@ export const CATEGORIES = [ 'Decrypted Text', 'True Focus', 'Scroll Float', - 'Scroll Reveal' + 'Scroll Reveal', + 'Rotating Text' ] }, { diff --git a/src/constants/Components.ts b/src/constants/Components.ts index 6f5a3cf..4641444 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -26,7 +26,8 @@ const textAnimations = { 'decrypted-text': () => import("../demo/TextAnimations/DecryptedTextDemo.vue"), 'true-focus': () => import("../demo/TextAnimations/TrueFocusDemo.vue"), 'scroll-float': () => import("../demo/TextAnimations/ScrollFloatDemo.vue"), - 'scroll-reveal': ()=> import("../demo/TextAnimations/ScrollRevealDemo.vue") + 'scroll-reveal': ()=> import("../demo/TextAnimations/ScrollRevealDemo.vue"), + 'rotating-text': ()=> import("../demo/TextAnimations/RotatingTextDemo.vue") }; const components = { diff --git a/src/constants/code/TextAnimations/rotatingTextCode.ts b/src/constants/code/TextAnimations/rotatingTextCode.ts new file mode 100644 index 0000000..ac8c546 --- /dev/null +++ b/src/constants/code/TextAnimations/rotatingTextCode.ts @@ -0,0 +1,26 @@ +import code from '@/content/TextAnimations/RotatingText/RotatingText.vue?raw'; +import type { CodeObject } from '../../../types/code'; + +export const rotatingText: CodeObject = { + cli: `npx jsrepo add https://vue-bits.dev/ui/TextAnimations/RotatingText`, + installation: `npm i motion-v`, + usage: ` + +`, + code +}; diff --git a/src/content/TextAnimations/RotatingText/RotatingText.vue b/src/content/TextAnimations/RotatingText/RotatingText.vue new file mode 100644 index 0000000..1d44010 --- /dev/null +++ b/src/content/TextAnimations/RotatingText/RotatingText.vue @@ -0,0 +1,233 @@ + + + diff --git a/src/demo/TextAnimations/RotatingTextDemo.vue b/src/demo/TextAnimations/RotatingTextDemo.vue new file mode 100644 index 0000000..5c0ff2b --- /dev/null +++ b/src/demo/TextAnimations/RotatingTextDemo.vue @@ -0,0 +1,166 @@ + + +