createVelocity
Reads the per-frame velocity of a source MotionValue. It is useful for drag effects where skew,
rotation, or scale should respond to how quickly the user moves.
import { createMotionValue, createTransform, createVelocity, motion } from 'motion-solidjs'
const x = createMotionValue(0)
const velocity = createVelocity(x)
const skew = createTransform(velocity, [-1500, 0, 1500], [-25, 0, 25])
return <motion.div drag="x" style={{ x, skewX: skew }} />