-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
How do I use the transition property? #3
Comments
HI @zhang6685979 |
Hi @zhang6685979 Example: Also you can use transition props for vuejs transition |
I haven't been able to get transitions to work. I can see the name of the transition is successfully passed as a prop, but it doesn't seem to be properly setting up the transition element as I cannot see any transition class being added and removed. I've looked at the template of the vue-popper and it appears pretty straightforward, so it may be something I am doing. Any guidance would be appreciated. |
+1 didn't work for me |
I don't quite understand the problem you saw the example above? |
This is my attempt at a transition. I think I'm missing something fundamental about how it is supposed to work:
[EDIT] I needed to do two things to make it work: remove "scoped" from the styles and spell out the classes like this:
|
In order to animate Popper instances, you need to wrap the popper element in a div and add the transitions to that.
<div class="dont-animate-me" x-placement="bottom-start" style="position: absolute; transform: translate3d(10px, 37px, 0px); top: 0px; left: 0px; will-change: transform;">
<div class="animate-me">
<div class="your-popper"></div>
</div>
</div> |
I got it working through:
In other words, I needed both the |
I am unable to get the vue-popper animation working. I can see the animation classes being added to the popper element but the animation doesn't work. I believe the issue has to do with the append-to-body attribute, however I need that in order to get the popper to appear correctly within the project that I was handed.
|
You can't use transform for transitions cause it will break positioning of popper.js - so we could say most of the transitioning for this component is useles |
Based on this, I had to use a container in the slot and do the transition on this container.
|
Still there's no official documentation about how to use the |
How can transition attributes be used in conjunction with animate.css?
The text was updated successfully, but these errors were encountered: