"Bootstrap Modal with blurred background"
Bootstrap 3.3.0 Snippet by amitabha197

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row background-container"> <h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2> <div class="col-md-12"> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">See Modal</button> </div> </div> </div> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel">Bootstrap Modal with Blurred Background</h4> </div> <div class="modal-body"> <h3>How This concept evolved in me</h3> <p>Today I received a mailer from <a href="https://www.canva.com/" target="_blank">Canva</a></p> <p>When I clicked their button elements I found that background is going blurred. So it looked awesome to me. </p> <p>There are available plugins to do this also -- <a href="http://www.jqueryscript.net/lightbox/jQuery-Plugin-To-Popup-A-Modal-Window-with-Blurred-Background-BlurBox.html" target="_blank">Check this link</a></p> <p>But I tried to do it in bootstrap modal<br/> Thanks to Stack Overflow <a href="http://stackoverflow.com/questions/19571955/how-to-make-modal-dialog-with-blur-background-using-twitter-bootstrap" target="_blank"> http://stackoverflow.com/questions/19571955/how-to-make-modal-dialog-with-blur-background-using-twitter-bootstrap</a> </p> </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> </div>
body.modal-open .background-container{ -webkit-filter: blur(4px); -moz-filter: blur(4px); -o-filter: blur(4px); -ms-filter: blur(4px); filter: blur(4px); filter: url("https://gist.githubusercontent.com/amitabhaghosh197/b7865b409e835b5a43b5/raw/1a255b551091924971e7dee8935fd38a7fdf7311/blur".svg#blur); filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius='4'); }

Related: See More


Questions / Comments: