Jss: function values doenst work with keyframes

Created on 19 Apr 2017  路  10Comments  路  Source: cssinjs/jss

'@keyframes move': {
    '0%': {
      transform: 'translateX(0)'
    },
    '100%': {
      transform: ({size}) => `translateX(${size}px)`
    }
  }

Doesn't seem to work.

In addition, when this didn't work in my React Component, it messed up other classes injection as well.

bug

Most helpful comment

Fixed and released in 7.1.2

All 10 comments

Lets see.

Btw. I am not sure one should do this anyways. keyframes should be actually static.

You can basically do the same using transform directly, without keyframes.

I simplified the code when posting the issue.

The keyframe actually does not change, because my props wont change. But it is important for it to be initially calculated from props

I see!

I'm running into this as well. I have a BarChart in a table, and I'd love for it to animate from 0 width to it's actual width (based on the value) on load. After that the transition takes over.

Thanks for the killer library.

Will be fixed soon.

Fixed and released in 7.1.2

Woohoo thank you!

Thanks for fixing the bug 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pofigizm picture pofigizm  路  5Comments

kof picture kof  路  4Comments

antoinerousseau picture antoinerousseau  路  3Comments

janhartmann picture janhartmann  路  5Comments

glowkeeper picture glowkeeper  路  5Comments