- Notifications
You must be signed in to change notification settings - Fork 15
Closed
Labels
Description
This should allow multi-value springs such as translate
, translate3d
or border
-, margin
- and padding
-shorthands
import spring, { format } from 'css-spring' const keyframes = spring( { translate3d: [ 0, 0, 0 ] }, { translate3d: [ 250, -150, 0 ] }, { preset: 'wobbly', precision: 5 } ) const moveLeft = format( keyframes, (k, v) => `transform: ${k}(${v[0]} ${v[1]} ${v[2]});` )