Command Palette
Search for a command to run

Word Rotate

A vertical rotation of words

motion-sv

Word

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/word-rotate.json

Props

WordRotate

A component for Word Rotate.

NameTypeDefaultDescription
class
string "" Additional CSS classes to apply
words
string[] required Array of words to rotate through
duration
number 2500 Duration between word changes in milliseconds
motionProps
MotionProps { initial: { opacity: 0, y: -50 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: 50 }, transition: { duration: 0.25, ease: 'easeOut' } } Motion animation properties