-
Notifications
You must be signed in to change notification settings - Fork 16.2k
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
Transform Property Doesn't Work After Using Animate.css #1117
Comments
This is the way CSS works. animate.css is just overwriting any previous transform declaration (we use transform in most of the animations). The easy and quick "fix" is to add a wrapper to the element and animate this wrapper instead. I'm closing this as it's not an issue with the library. I'll try to add a section in the docs with guidelines about this. |
Ah, I see.
Sorry to bother you, then.
Thanks for your help!
…On Fri, Sep 18, 2020 at 12:19 PM Elton Mesquita ***@***.***> wrote:
Closed #1117 <#1117>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1117 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMGRXO7I33IIVEGZFYFUIHDSGMQ33ANCNFSM4RRUVM6Q>
.
|
this isn't a fix but if u can use the animateCSS javascript wrapper function the docs suggested. it removes the animation class after the animation ends so the transform styles wont stick. however while an animation is playing your own transform styles will still get overridden so it may appear to pop in and out of position randomly. i advise the "wrapper" fix. if you have too much time on your hands and disregard your mental and emotional wellbeing then there is a theoretical ultimate fix: with js read the computed transform styles that you applied. then still within js read the animate.css keyframe style. at this point linking this lib from a cdn and hardcoded html classes is out of the question u would need some kind of css>js loader to read animate.css styles for your target animation. now write some sort of frankenstein transform style masher that can not only combine different types of transformations but also combine and offset the same kinds. honestly...maybe just use a wrapper... |
Hi, there!
In a few of my projects, I've noticed that after I animate an element by adding the animation classes from Animate.css to it, I can no longer use the transform property on that element in my own stylesheet (i.e., the transform property in my stylesheet seems to have no effect, even if my stylesheet is linked after the Animate.css stylesheet in my markup).
Is there any reason why that happens? Or am I doing something wrong?
The text was updated successfully, but these errors were encountered: