-
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
Smooth transition due to contents changing #22
Comments
Could you provide a reproduction with a jsfiddle? |
I've provided a repro here on codesandbox.io. Ignore the error ( But you can see how when you click next and previous the size of the '.guide' changes because the contents change. However, it's not an explicit animation. |
Why ignore the error? It's telling you what's wrong. The vue option is The transition works for me after fixing the Also, the intent of vue-smooth-reflow is indeed to automatically transition the height, so you shouldn't need to explicitly set the height property. |
Because I'm not getting that error in my actual project. I was just getting it on codesandbox. I have it spelled "mixins" plural in my actual project and it does not work. Not sure why, if it works in the sandbox. Must investigate. I get no errors at all. |
@guanzo hello, test flow:
please try to reproduce.. thanks! |
I have a component that is basically a div with a bunch of headings and texts and buttons and forms and other things inside. The content is dynamic and changes when the user taps a button. The component remains the same, but the model changes.
This causes the height of the component to change. I was hoping vue-smooth-reflow would animate this height change, but I'm guessing it only does so when you explicitly set the height property in css?
Is there anyway to auto-trigger these smooth reflows? I initially thought this was the intention, but when I tried it, it didn't work for me.
The text was updated successfully, but these errors were encountered: