Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What about keyframes animation? #54

Open
Grimones opened this issue Oct 23, 2017 · 7 comments
Open

What about keyframes animation? #54

Grimones opened this issue Oct 23, 2017 · 7 comments

Comments

@Grimones
Copy link

Grimones commented Oct 23, 2017

Do styled-jss support keyframes animations and what is the syntax? Unfortunately i wasn't able to get it work using example from here

@Grimones Grimones changed the title What about keyframes? What about keyframes animation? Oct 23, 2017
@kof
Copy link
Member

kof commented Oct 23, 2017

Should work, can you post your code?

@lttb
Copy link
Member

lttb commented Oct 23, 2017

Hi @Grimones, there is an example with Styled function:

https://www.webpackbin.com/bins/-Kx85LgRuU3lUjCrbnGW

@Grimones
Copy link
Author

@kof It was sometime ago and i haven't saved it. I thought that i have missed something and was trying to search better. Now i came back to this and only one option left for me it was to open an issue to ask help.

@lttb Hi. Thanks for reply. Yep, it is working.
May be there is syntax like styled-components use?
something like

const animation = keyframes({
  from: {opacity: 0},
  to: {opacity: 1}
})

const Item = styled('div')({
  animation: `${animation} 2s`
})

@lttb
Copy link
Member

lttb commented Oct 23, 2017

@Grimones we don't have such thing yet, but I think it's a nice to have feature. We'll try to support it soon

@Grimones
Copy link
Author

@lttb Great! However thank you for pointing in right direction. Will proceed with Styled

@sergeysova
Copy link

Have any progress here?

@kof
Copy link
Member

kof commented Apr 19, 2018

As of right now you can use https://github.com/cssinjs/styled-jss#base-style-sheet .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants