-
Notifications
You must be signed in to change notification settings - Fork 308
I have a problem about radium.keyframes #912
Comments
I'm facing the same problem is there a possible fix to this? or keyframes animation inline is just not possible at all? |
Here's a minimal repro. Works in Chrome 60 but not Safari 10.1.1: https://codepen.io/patricknausha/pen/GvQxKR |
It seems my codepen sometimes works (the box rotates) the first time in Safari. After a refresh, it won't. |
I ended up using GASP tweenmax to achieve this, worked like a charm! |
My suspicion is that this is a race condition, in which the This can also be verified by doing the following:
Looking at the code, the update of the global stylesheet ( Does anyone know why the |
You could also try this AnimationAwareStyle component |
I try to change the animation when I click a button and do something when the animation is complete.
Here is a simple example:
This code can work in chrome, but can not work in safari, iphone`s chrome.
The problem is that
keyframe
is added tostyle tag
after the browser addstyle
to component.As a result,
onAnimationEnd
will not be called because theanimation
does not work.Here is my solution:
This can add
keyframe
tostyle tag
at the begin.animation
will work becausekeyframe
does exist.However, I don`t think this is a good solution. Is any another way to solve it?
The text was updated successfully, but these errors were encountered: