codepunkt / css-spring

Generate physics based css-keyframe animations for the css-in-js solution of your choice or plain css.
MIT License
313 stars 15 forks source link

Object.values is not a function #14

Closed super-cache-money closed 7 years ago

super-cache-money commented 7 years ago

I get the following error:

TypeError: Object.values is not a function
    at path/node_modules/css-spring/dist/css-spring.js:648:100

Here's the code I'm trying to run:

const spring = require('css-spring').default;
const springTest = spring({ left: '50px' }, { left: '250px' }, { preset: 'gentle' });
super-cache-money commented 7 years ago

NVM, being an idiot!

super-cache-money commented 7 years ago

Just needed a polyfill / babel

codepunkt commented 7 years ago

Glad the issue resolved itself! :-)