You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And for some reason the opacity change was working but not the scaling.
It took some investigation but I believe that the part of the code that adds/removes classes breaks this as it adds the leaveToClass and then removes the leaveClass. Since transform is present in both, it gets removed and the scale is thus not applied.
Hi there,
I spent some time figuring out an issue while trying to use ember-css-transitions with an example from Tailwind UI.
I copied the code from their site and the comment stated the following:
So naturally what I did was the following:
And for some reason the opacity change was working but not the scaling.
It took some investigation but I believe that the part of the code that adds/removes classes breaks this as it adds the
leaveToClass
and then removes theleaveClass
. Sincetransform
is present in both, it gets removed and the scale is thus not applied.See https://github.com/peec/ember-css-transitions/blob/master/addon/modifiers/css-transition.js#L218-L219
I don't know if there's any risk of introducing a bug by reversing the order but I think it would solve this.
In the mean time the simple workaround is to move
transform
toleaveActiveClass
but I preferred opening an issue as it's pretty counter-intuitive.Thanks for this addon. Let me know if I can be of any help.
❤️
The text was updated successfully, but these errors were encountered: