wrap
wrap is a math utility re-exported from motion-utils. It wraps a number into a circular range,
so going past the maximum returns to the minimum.
import { wrap } from 'motion-solidjs'
wrap(0, 10, 12) // 2
wrap(-1, 1, 1.4) // -0.6
#0Aurora
Use it with keyframed sequences that need a looping counter or circular cursor.