Spinning Text

The Spinning Text component animates text in a circular motion with customizable speed, direction, color, and transitions for dynamic and engaging effects.

Examples

reverse

API

Prop NameTypeDefaultDescription
durationnumber10The duration of the full circular rotation animation.
reversebooleanfalseDetermines if the animation should rotate in reverse.
radiusnumber5The radius of the circular path for the text animation.
transitionmotion-v Transition``Custom transition effects for the animation.
variants{container: motion-v Variant, item: motion-v Variant}``Variants for container and item animations.
classstring""A custom class name for the text container.

Install using CLI

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://inspira-ui.com/r/spinning-text.json"

Component Code

You can copy and paste the following code to create this component:

SpinningText.vue

Credits