Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

background pixels flickering on bootstrap modal

Anybody know bootstrap modal background issue? flickering background pixels

jsfiddle

HTML

<!-- Button trigger modal -->
<button type="button" id="mymodal" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">

Launch demo modal

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    <h4 class="modal-title" id="myModalLabel">Modal title</h4>
  </div>
  <div class="modal-body">
    ...
  </div>
  <div class="modal-footer">
    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
    <button type="button" class="btn btn-primary">Save changes</button>
  </div>
 </div>
 </div>

enter image description here

like image 869
Jagdish Parmar Avatar asked Sep 30 '17 08:09

Jagdish Parmar


1 Answers

I changed .fade.in opacity property on bootstrap.min.css from 1 to 0.99: .fade.in{opacity:0.99}

and that solved the problem while a better solution appears.

* update* try this on bootstrap.min.css

.fade.in{opacity:1;-webkit-backface-visibility: hidden;}

like image 76
EmilioRamirez24 Avatar answered Oct 19 '22 22:10

EmilioRamirez24