-
Notifications
You must be signed in to change notification settings - Fork 18
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
Transition doesn't seem to work when using a transition. #3
Comments
Yep, you should use the Here's the updated example: https://codesandbox.io/s/k3x4j260qr Waiting for child transitions to finish is an opt-in feature, meaning it's not done automatically. In the past, it used to be automatic by listening and reacting to any The basic idea of
It would have the same effect, because the elements are transitioning out with This also works
or this!
CSS selectors are quite flexible. Closing this issue now, hope that was helpful. |
Thanks for the extensive explanation. Unfortunately that doesn't seem to solve the issue. I noticed Just to be clear: the gray box behind the left content does not reflow smootly, it just jumps from small to large and back (the usual behaviour when vue-smooth-reflow isn't implemented). Are you getting different results? FYI: I tried both Chrome and Safari. |
Hmm... It should definitely work on Chrome. The example I posted works for me. I'm aware that it won't work perfectly on other browsers. My chrome version is: Version 68.0.3440.106 (Official Build) (64-bit). What's yours? Reopening for now until I can figure it out. |
Version 68.0.3440.106 (Official Build) (64-bit) on macOS 10.13.6 (17G65). |
Ok, scratch that. I refreshed in Chrome, and now it seems to work. It doesn't seem to work in Safari Version 11.1.2 (13605.3.8) though (as you hinted). |
Ok great. So yeah the problem with other browsers is that when an element is transitioned out with I don't know if this is Chrome going beyond the spec, or that other browsers are doing it wrong. What's curious is that I'm sure if you defined the I'll leave this issue open until we can get |
FYI: As an experiment, I added the after-leave hook to log to the console, and it seems to work in Safari. |
update src file with more universally accepted method syntax
I think I found a workaround.
In my example, I use a table but I guess you could use whatever. Then, in the script, after the elements are loaded, set "loading" to false ;) |
For me, it looks good in the sandbox you provided (https://codesandbox.io/s/k3x4j260qr), but if I download it and host locally, it does not. The animation is jerky:
In my app, however, the behavior is inconsistent – sometimes it behaves as above, sometimes the height just jumps and that's it (like when
|
When using a vue transition to fade to new content, the vue-smooth-reflow effect doesn't seem to work. Do demonstrate the issue, I made a codesandbox example with two example containers, one contains the transition, the other doesn't:
https://codesandbox.io/s/wpmqzk19l
Is there a way around this issue?
The text was updated successfully, but these errors were encountered: