Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.babelrc
.eslintrc.js
.gitignore
.travis.yml
README.md
package.json

README.md

keyframe-transpose

Convert object keyframe input to array

npm JavaScript Style Guide 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)' },
]

Live Example (tonicdev)

Related Project

You can’t perform that action at this time.