arc
arc() returns a PathInterpolator for a transition's path property. Use it when an element
should travel through a curve instead of a straight line between keyframes.
import { arc, motion } from 'motion-solidjs'
const path = arc({ strength: 1 })
return <motion.div animate={{ x: 220 }} transition={{ duration: 1, path }} />
✦
Options
strength- how much the path bows (0 = straight, 1 = pronounced)rotate- rotate the element to face the tangent
Create the interpolator once and reuse it across renders. It keeps internal state for the dominant axis.