Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"TEST: responsive LightBox"
Bootstrap 3.3.0 Snippet by
mrmccormack
3.3.0
responsive
Preview
HTML
CSS
View Full Screen
Fork
Fork this
8.1K
 
2 Fav
Post to Facebook
Tweet this
<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 ----------> <script src="https://osvaldas.info/examples/image-lightbox-responsive-touch-friendly/imagelightbox.js"></script> <script> $( function() { // alert('hi keegan'); $( 'a.light' ).imageLightbox(); }); </script> <div class="container"> <div class="row"> <h2>Responsive Lightbox</h2> <a class="light" href="https://osvaldas.info/examples/image-lightbox-responsive-touch-friendly/full/10.jpg" data-imagelightbox="c"><img src="https://osvaldas.info/examples/image-lightbox-responsive-touch-friendly/thumb/10.jpg" alt="Sunset over Plateliai lake"></a> <a class="light" href="https://osvaldas.info/examples/image-lightbox-responsive-touch-friendly/full/10.jpg" data-imagelightbox="c"><img src="https://osvaldas.info/examples/image-lightbox-responsive-touch-friendly/thumb/10.jpg" alt="Sunset over Plateliai lake"></a> <a class="light" href="https://osvaldas.info/examples/image-lightbox-responsive-touch-friendly/full/10.jpg" data-imagelightbox="c"><img src="https://osvaldas.info/examples/image-lightbox-responsive-touch-friendly/thumb/10.jpg" alt="Sunset over Plateliai lake"></a> <a class="light" href="https://osvaldas.info/examples/image-lightbox-responsive-touch-friendly/full/10.jpg" data-imagelightbox="c"><img src="https://osvaldas.info/examples/image-lightbox-responsive-touch-friendly/thumb/10.jpg" alt="Sunset over Plateliai lake"></a> <a class="light" href="https://osvaldas.info/examples/image-lightbox-responsive-touch-friendly/full/10.jpg" data-imagelightbox="c"><img src="https://osvaldas.info/examples/image-lightbox-responsive-touch-friendly/thumb/10.jpg" alt="Sunset over Plateliai lake"></a> <hr> Best viewed <a href="http://bootsnipp.com/iframe/m0jOZ" target="_blank">full screen</a> : <a href="http://validator.w3.org/check?uri=http%3A%2F%2Fbootsnipp.com%2Fiframe%2Fm0jOZ" target="_blank"><small>HTML</small><sup>5</sup></a> </div> </div>
#imagelightbox { position: fixed; z-index: 9999; -ms-touch-action: none; touch-action: none; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76