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)' },
]

Readme

Keywords

Package Sidebar

Install

npm i keyframe-transpose

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • inuscript
  • terrierscript