-
Notifications
You must be signed in to change notification settings - Fork 262
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
Keyframe animations #68
Comments
weird :D |
Good catch @HeyHugo we should fix it! |
Stylis does prefix keyframes and animations but there is an option to disable this @rauchg, I think a lot of these issue will be solved with updating the fork up stream. |
In this case it's a bug with prefixing Btw @thysultan would love to merge with upstream, but keep in mind we made the following changes:
|
@rauchg Yes upstream handles 2 ':global' and attribute selectors. I could send a PR that that updates it upstream with 1. And ':host' disabled? |
@thysultan that would be wonderful. Thanks for your awesome work on stylis |
Pushed a few patches for animations until we have @thysultan's permanent solution. 🕺 |
Nice, now my first example works. However I think the shorthand version for animation is still broken. e.g.
Produced css:
|
That's remarkably helpful @thysultan, thank you so much! |
@giuseppeg @thysultan , I'm getting conflict in animation keyframe when i use only point based value in animation timing shorthands. Like .8s instead of 0.8s for example. The former syntax is accepted in the browser afaik. Not so important, just came across this. Input:
Output:
|
@aga5tya Can't reproduce in stylis, what version of styled-jsx are you using? |
Hi!
I was trying to do a keyframe animation with styled-jsx, but the produced css looks a bit strange and my animation doesn't work.
This is what I try to render:
and this is the produced css:
As you can see the data-jsx number (1065293759) seem to be prefixed before all animation property values.
Am I doing this wrong or could this be a real issue?
The text was updated successfully, but these errors were encountered: