Animate.css: .animated class clashes with bootstrap modal

Created on 14 Dec 2017  路  3Comments  路  Source: animate-css/animate.css

"animation-fill-mode: both" attribute clashes with the boostrap 3 modal popups.

It causes the class "modal-backdrop" to appear in front of all the others

image

If you remove the css attribute, it causes the content to flicker once before loading.

n.b. I am using animate.css along with wow js.

Any solutions?

help wanted

Most helpful comment

Animate.css conflict with Bootsrap Modal because it have class animated fadeIn in the parent div.
To fix this issue, you need to remove class fadeIn on event show.bs.modal and put it back on event hidden.bs.modal.

Here is demo fix your issue: https://codepen.io/vndevil/pen/KBZOzb

All 3 comments

Could you please share a reduced case on codepen showing the issue? It's really hard to debug anything from a screenshot.

Closing this as it's stale. Feel free to reopen it when you've got a reduced case.

Animate.css conflict with Bootsrap Modal because it have class animated fadeIn in the parent div.
To fix this issue, you need to remove class fadeIn on event show.bs.modal and put it back on event hidden.bs.modal.

Here is demo fix your issue: https://codepen.io/vndevil/pen/KBZOzb

Was this page helpful?
0 / 5 - 0 ratings

Related issues

samuel-fonseca picture samuel-fonseca  路  3Comments

phlegx picture phlegx  路  5Comments

joetidee picture joetidee  路  4Comments

eltonmesquita picture eltonmesquita  路  5Comments

marcobiedermann picture marcobiedermann  路  3Comments