Skip to content

Instantly share code, notes, and snippets.

@johhansantana
Created November 9, 2015 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johhansantana/df597f694e6f2918451e to your computer and use it in GitHub Desktop.
Save johhansantana/df597f694e6f2918451e to your computer and use it in GitHub Desktop.
bootstrap popover body overlay
$('[data-toggle="popover"]').on('mouseenter', function(){
$('.overlay-light').finish().fadeOut();
$('.overlay-light').fadeIn();
});
$('[data-toggle="popover"]').on('mouseleave', function(){
$('.overlay-light').finish().fadeIn();
$('.overlay-light').fadeOut();
});
@johhansantana
Copy link
Author

.overlay-light{
  position: fixed;
  content:" ";
  top:0;
  left:0;
  width:100%;
  height:100%;
  display: block;
  background-color: rgba(0, 0, 0, 0.2);
  z-index:0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment