-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Anyway to block auto-animate from appearing on certain child elements? #31
Comments
There's not any way to block the animations from running on the children "out of the box" — but you could do so with a custom plugin since the plugin receives each element that needs to be animated, you could just not animate ones you didnt want animated. Realistically this is unlikely to change — the interaction of siblings next to each other in most scenarios requires a wholistic accounting of every elements position. I'd recommend changing the structure of those elements. |
Working on a quite tight deadline and restructuring so the modal being outside of the parent would be a bit hard currently. (and the issue is purely cosmetical) I see the plugin section, and I see that I can touch all the elements, but I'm unsure how I would go about just not animating if element == modal. Any chance you could give some guidance on how to accomplish that? :) |
@eastlin7 Take a look at the plugins section of the doc — just return empty keyframes if you don't want to animate. |
I'm having the same problem. I need to skip animation for tooltips in a list of labels. I've tried out @andrew-boyd solution with returning empty keyframes, but this removes animation for all the actions too. I ended up taking default keyframes from the source code, then it worked:
it seems like it could be done in an easier way. Maybe someone could help? Is there a way to "continue" with the defaults instead of overriding them? |
I am having the same issue. Has anyone figured a way to just ignore certain items without having to rewrite all the override code? |
I have a setup essentially looking like this:
The modals are from an external library (Materialize) and right now due to auto-animate the Modal pop-up animation is quite funky as the animations are conflicting, anyway I could disable Auto-animate on the child Modal elements?
The text was updated successfully, but these errors were encountered: