Jagdish Parmar
Jagdish Parmar

Reputation: 599

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

Upvotes: 7

Views: 3529

Answers (2)

EmilioRamirez24
EmilioRamirez24

Reputation: 86

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;}

Upvotes: 7

iMichaeln
iMichaeln

Reputation: 46

It looks like bug in bootstrap, i got the same issue and i found out that it caused by elements on the page that got opacity property. i manage to reproduce it on bootstrap site hope it will help you.

enter image description here

furthermore, it happen only on chrome.

Upvotes: 0

Related Questions