-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Modal-Component backdrop fade effect glitches #687
Comments
I asked about that too in the gitter channel, but got no answers. It seems to me that instead of the background's element opacity starting at 0 and move gradually to somewhere near 50%, it starts at 100% and then moves down, or something. |
I can confirm this, but I can't see where this is coming from. Perhaps @valorkin can help. |
to be honest I was fighting a bit with it,
I am waiting for ng2-animate and try it |
Can @valorkin post the said ugly code, so we can patch our page until you are able to actually close this issue. |
OK, can I do it nearest Monday? |
@BenevidesLecontes Nice to hear. Could you please share the solution with all of us? |
@MaximilianWiedemann here's my css with animation .modal.fade .modal-content{ @Keyframes anim-open { @-webkit-keyframes anim-close { @Keyframes anim-close { |
@BenevidesLecontes This only fixes the issue partially because now you're missing the fade in animation. The backdrop now appears instantly. It's way better than before, however it's not fixed completely. |
@MaximilianWiedemann try to change the animations duration. |
@BenevidesLecontes That CSS fix is very close, but as @MaximilianWiedemann points out, there is no fade in animation at all, alerting the animation durations don't seem to have an effect. Will try work out CSS that is a complete workaround. |
Guys ugly fix deployed to http://valor-software.com/ng2-bootstrap/#/modals |
@valorkin as ugly fixes go, that's a good one. Thanks very much. |
@valorkin Works for me. 👍 |
awesome, publishing |
published |
use https://www.hamsterpad.com/chat/ng2 to get in touch |
When activating the modal backdrop, for a fraction of a second the background gets dark without fade effect. Then it gets back to transparent and only after that a fade effect is triggered.
Tested in Chrome, Firefox and Edge. The Problem does not occur with Bootstrap only modal.
You can compare this on both demo pages:
The text was updated successfully, but these errors were encountered: