Have ideas to improve npm?Join in the discussion! »

keyframe-transpose

1.0.2 • Public • Published

keyframe-transpose

Convert object keyframe input to array

npm Build Status

Usage

const keyframeTranspose = require('keyframe-transpose')
 
keyframeTranspose({
  opacity: [0.5, 2, 1],
  transform: ['scale(0.5)', 'scale(1)']
})

Output:

[
  { offset: 0, opacity: 0.5, transform: 'scale(0.5)' },
  { offset: 0.5, opacity: 2 },
  { offset: 1, opacity: 1 , transform: 'scale(1)' },
]

Keywords

Install

npm i keyframe-transpose

DownloadsWeekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • avatar
  • avatar