Skip to content

Support array values #1

@codepunkt

Description

@codepunkt

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]});` )

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions