Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <html lang="en">
<head>
<title>Fade Transition</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">

<style>
ul {
list-style: none outside none;
padding-left: 0;
}
.gallery li {
display: block;
float: left;
height: 100px;
margin-bottom: 6px;
margin-right: 6px;
width: 100px;
}
.gallery li a {
height: 100px;
width: 100px;
}
.gallery li a img {
max-width: 100px;
}
  
  /* lightGallery.css  */
  /*clearfix*/
.group {
  *zoom: 1;
}
.group:before, .group:after {
  	display: table;
    content: "";
    line-height: 0;
}
.group:after{
	clear: both;
}
/*/clearfix*/


/** /font-icons/**/
@font-face {
	font-family: 'Slide-icons';
	src:url('../font/Slide-icons.eot');
}
@font-face {
	font-family: 'Slide-icons';
	src: url(data:application/font-woff;charset=utf-8;base64,d09GRk9UVE8AAAWcAAsAAAAACSgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAABCAAAAm4AAAQxqzjSYEZGVE0AAAN4AAAAGgAAABxmWaSOR0RFRgAAA5QAAAAdAAAAIAAzAARPUy8yAAADtAAAAEsAAABgL/bcQGNtYXAAAAQAAA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yUzFSMnMxUjBzMVIyUzFSMnMxUjIICAAUCAgKCAgKCAgAFAgICggICggIABQICAoICAAcCAgICAgCCAgICAgCCAgICAgAAAAQCWAAoBjwG2ABEAAAE2LwEmDwEGFB8BFj8BNjQvAQGKCwsTDAvBCQnBCwsUBAStAYwMCxMLC8EJGAnBCwsTBQ0FrAAAAAwAlgABAAAAAAABAAsAGAABAAAAAAACAAUAMAABAAAAAAADACcAhgABAAAAAAAEAAsAxgABAAAAAAAFAAsA6gABAAAAAAAGAAsBDgADAAEECQABABYAAAADAAEECQACAAoAJAADAAEECQADAE4ANgADAAEECQAEABYArgADAAEECQAFABYA0gADAAEECQAGABYA9gBTAGwAaQBkAGUALQBpAGMAbwBuAHMAAFNsaWRlLWljb25zAABpAGMAbwBuAHMAAGljb25zAABGAG8AbgB0AEYAbwByAGcAZQAgADIALgAwACAAOgAgAFMAbABpAGQAZQAtAGkAYwBvAG4AcwAgADoAIAAyADUALQA5AC0AMgAwADEAMwAARm9udEZvcmdlIDIuMCA6IFNsaWRlLWljb25zIDogMjUtOS0yMDEzAABTAGwAaQBkAGUALQBpAGMAbwBuAHMAAFNsaWRlLWljb25zAABWAGUAcgBzAGkAbwBuACAAMQAuADAAAFZlcnNpb24gMS4wAABTAGwAaQBkAGUALQBpAGMAbwBuAHMAAFNsaWRlLWljb25zAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAABAAIBAgEDAQQBBQEGB3VuaUYwMDAHdW5pRTAxQQd1bmlFMDFCB3VuaUUwMUMHdW5pRTAxRAAAAAAAAf//AAIAAQAAAA4AAAAYAAAAAAACAAEAAwAHAAEABAAAAAIAAAAAAAEAAAAAyYlvMQAAAADOaBquAAAAAM5oGq4=) format('truetype');
	font-weight: normal;
	font-style: normal;
}

/* Use the following CSS code if you want to use data attributes for inserting your icons */
[data-icon]:before {
	font-family: 'Slide-icons';
	content: attr(data-icon);
	speak: none;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/** //font-icons/**/




.lightGallery {
	overflow: hidden!important;
}
#lightGallery-Gallery img {
	border: none!important;
}
#lightGallery-outer{
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99999!important;
	overflow: hidden;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	opacity:1;
	-webkit-transition: opacity 0.35s ease;
	-moz-transition: opacity 0.35s ease;
	-o-transition: opacity 0.35s ease;
	-ms-transition: opacity 0.35s ease;
	transition: opacity 0.35s ease;
	background: #0d0d0d;
}

/*lightGallery starting effects*/
#lightGallery-Gallery.opacity{
	opacity: 1;
	transition: all 1s ease 0s;
	-moz-transition: all 1s ease 0s;
	-webkit-transition: all 1s ease 0s;
	-o-transition: all 1s ease 0s;
	-ms-transition: all 1s ease 0s;
}
#lightGallery-Gallery.opacity .thumb_cont{
	opacity: 1;
}
#lightGallery-Gallery.fadeM{
	opacity: 0;
	transition: all 0.5s ease 0s;
	-moz-transition: all 0.5s ease 0s;
	-webkit-transition: all 0.5s ease 0s;
	-o-transition: all 0.5s ease 0s;
	-ms-transition: all 0.5s ease 0s;
}
/*lightGallery starting effects*/


/*lightGallery core*/
#lightGallery-Gallery {
	height: 100%;
    opacity: 0;
    width: 100%;	
	transition:all 1s ease 0s;
	-moz-transition: all 1s ease 0s;
	-webkit-transition: all 1s ease 0s;
	-o-transition: all 1s ease 0s;
	-ms-transition: all 1s ease 0s;
}
#lightGallery-slider {
	height: 100%;
	left: 0;
	top: 0;
	width: 100%;
	white-space: nowrap;
	position: absolute;
}
#lightGallery-slider .lightGallery-slide {
    background:url(../img/loading.gif) no-repeat scroll center center transparent;
    display: inline-block;
    height: 100%;
    line-height: 1px;
    text-align: center;
    width: 100%;
}
#lightGallery-slider.slide .lightGallery-slide{
	 position: absolute;	
	 opacity: 0.4;
}
#lightGallery-slider.fadeM .lightGallery-slide{
	position:absolute;
	left:0;
	opacity:0;
}
#lightGallery-slider.animate .lightGallery-slide{
	position:absolute;
	left:0;
}
#lightGallery-slider.fadeM .current{
	opacity:1;	
}
#lightGallery-Gallery.opacity .lightGallery-slide.current img, #lightGallery-Gallery.opacity .lightGallery-slide.current iframe {
	transform:scale(1, 1);
	-moz-transform:scale(1, 1);
	-ms-transform:scale(1, 1);
	-webkit-transform:scale(1, 1);
	-o-transform:scale(1, 1);
}
.lightGallery-slide.current img, .lightGallery-slide.current iframe {
	transform:scale(0.5, 0.5);
	-moz-transform:scale(0.5, 0.5);
	-ms-transform:scale(0.5, 0.5);
	-webkit-transform:scale(0.5, 0.5);
	-o-transform:scale(0.5, 0.5);
	transition: all 1s ease 0s;
	-moz-transition: all 1s ease 0s;
	-webkit-transition: all 1s ease 0s;
	-o-transition: all 1s ease 0s;
	-ms-transition: all 1s ease 0s;
}
#lightGallery-Gallery.fadeM .lightGallery-slide.current img, #lightGallery-Gallery.fadeM .lightGallery-slide.current iframe{
	transform:scale(0.5, 0.5);
	-moz-transform:scale(0.5, 0.5);
	-ms-transform:scale(0.5, 0.5);
	-webkit-transform:scale(0.5, 0.5);
	-o-transform:scale(0.5, 0.5);
}
#lightGallery-slider.fadeM.on .current{
	opacity:1;	
	transition: all 0.5s ease 0s;
	-moz-transition: all 0.5s ease 0s;
	-webkit-transition: all 0.5s ease 0s;
	-o-transition: all 0.5s ease 0s;
	-ms-transition: all 0.5s ease 0s;
}
#lightGallery-slider.fadeM .lightGallery-slide {
	transition: opacity 0.4s ease 0s;
	-moz-transition: opacity 0.4s ease 0s;
	-webkit-transition: opacity 0.4s ease 0s;
	-o-transition: opacity 0.4s ease 0s;
	-ms-transition: opacity 0.4s ease 0s;
}
#lightGallery-slider.slide .lightGallery-slide {
	transform:translate3d(100%, 0px, 0px);
	-moz-transform:translate3d(100%, 0px, 0px);
	-ms-transform:translate3d(100%, 0px, 0px);
	-webkit-transform:translate3d(100%, 0px, 0px);
	-o-transform:translate3d(100%, 0px, 0px);
}
#lightGallery-slider.slide.on .lightGallery-slide {
    opacity: 0;
}
#lightGallery-slider.slide .lightGallery-slide.current {
    opacity: 1 !important;
	transform:translate3d(0px, 0px, 0px) !important;
	-moz-transform:translate3d(0px, 0px, 0px) !important;
	-ms-transform:translate3d(0px, 0px, 0px) !important;
	-webkit-transform:translate3d(0px, 0px, 0px) !important;
	-o-transform:translate3d(0px, 0px, 0px) !important;
}
#lightGallery-slider.slide .lightGallery-slide.prevSlide {
	opacity: 0;
    transform: translate3d(-100%, 0px, 0px);
	-moz-transform:translate3d(-100%, 0px, 0px);
	-ms-transform:translate3d(-100%, 0px, 0px);
	-webkit-transform:translate3d(-100%, 0px, 0px);
	-o-transform:translate3d(-100%, 0px, 0px);
}
#lightGallery-slider.slide .lightGallery-slide.nextSlide {
	opacity: 0;
    transform: translate3d(100%, 0px, 0px);
	-moz-transform:translate3d(100%, 0px, 0px);
	-ms-transform:translate3d(100%, 0px, 0px);
	-webkit-transform:translate3d(100%, 0px, 0px);
	-o-transform:translate3d(100%, 0px, 0px);
}
#lightGallery-slider.slide.on .lightGallery-slide, #lightGallery-slider.slide.on .current, #lightGallery-slider.slide.on .prevSlide, #lightGallery-slider.slide.on .nextSlide{
	transition: all 1s cubic-bezier(0, 0, 0.25, 1) 0s;
	-moz-transition: all 1s cubic-bezier(0, 0, 0.25, 1) 0s;
	-webkit-transition: all 1s cubic-bezier(0, 0, 0.25, 1) 0s;
	-o-transition: all 1s cubic-bezier(0, 0, 0.25, 1) 0s;
	-ms-transition: all 1s cubic-bezier(0, 0, 0.25, 1) 0s;
}
#lightGallery-slider.speed .lightGallery-slide, #lightGallery-slider.speed .current, #lightGallery-slider.speed .prevSlide, #lightGallery-slider.speed .nextSlide{
	transition-duration:inherit !important;
	-moz-transition-duration:inherit !important;
	-webkit-transition-duration:inherit !important;
	-o-transition-duration:inherit !important;
	-ms-transition-duration:inherit !important;
}
#lightGallery-slider.timing .lightGallery-slide, #lightGallery-slider.timing .current, #lightGallery-slider.timing .prevSlide, #lightGallery-slider.timing .nextSlide{
	transition-timing-function:inherit !important;
	-moz-transition-timing-function:inherit !important;
	-webkit-transition-timing-function:inherit !important;
	-o-transition-timing-function:inherit !important;
	-ms-transition-timing-function:inherit !important;
}
#lightGallery-slider .lightGallery-slide:before {
	content: "";
	display: inline-block;
	height: 50%;
	width: 1px;
	margin-right: -1px;
}
#lightGallery-slider .lightGallery-slide img {
	display: inline-block;
	max-height: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	width: auto;
	height: auto;
	vertical-align: middle;
}
/*lightGallery core*/


/*action*/
#lightGallery-action {
	bottom: 20px;
	position: absolute;
	left: 50%;
	margin-left: -55px;
	z-index: 9;
}
#lightGallery-action a {
	margin: 0 3px 0 0 !important;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
	position: relative;
	top: auto;
	left: auto;
	bottom: auto;
	right: auto;
	display: inline-block !important;
	display: inline-block;
	vertical-align: middle;
	 *display: inline;
	  *zoom: 1;
	background-color: rgba(0, 0, 0, 0.65);
	font-size: 16px;
	width: 28px;
	height: 28px;
	font-family: 'Slide-icons';
	color: #FFF;
	cursor: pointer;
}
#lightGallery-action a:hover, #lightGallery-action a:focus {
	background-color: rgba(0, 0, 0, 0.85);
}
#lightGallery-action a#lightGallery-prev:before, #lightGallery-action a#lightGallery-next:after {
	content: "\e01d";
	left: 5px;
	bottom: 3px;
	position: absolute;
}
#lightGallery-action a#lightGallery-prev:before {
	content: "\e01d";
}
#lightGallery-action a#lightGallery-next:after {
	content: "\e01b";
}
#lightGallery-action a.cLthumb:after {
	font-family: 'Slide-icons';
  	content: "\e01c";
	left: 6px;
	bottom: 4px;
	font-size: 16px;
	position: absolute;
}
/*action*/

/*lightGallery Thumb*/
#lightGallery-Gallery .thumb_cont {
	position: absolute;
	bottom: 0;
	width: 100%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	background-color: #000000;
	-webkit-transition: max-height 0.4s ease-in-out;
	-moz-transition: max-height 0.4s ease-in-out;
	-o-transition: max-height 0.4s ease-in-out;
	-ms-transition: max-height 0.4s ease-in-out;
	transition: max-height 0.4s ease-in-out;
	z-index: 9;
	max-height: 0;
	opacity:0;
}
#lightGallery-Gallery .thumb_cont.open {
	max-height: 350px;
}
#lightGallery-Gallery .thumb_cont .thumb_inner {
	margin-left: -12px;
	padding: 12px;
	max-height: 290px;
	overflow-y: auto;
}
#lightGallery-Gallery .thumb_cont .thumb_info {
	background-color: #333;
	padding: 7px 10px;
}
#lightGallery-Gallery .thumb_cont .thumb_info .count {
	color: #ffffff;
	font-weight: bold;
	font-size: 12px;
}
#lightGallery-Gallery .thumb_cont .thumb_info .close {
	color: #FFFFFF;
	display: block;
	float: right !important;
	opacity: 0.6;
	-webkit-transition: opacity 0.3s ease 0s;
	-moz-transition: opacity 0.3s ease 0s;
	-o-transition: opacity 0.3s ease 0s;
	-ms-transition: opacity 0.3s ease 0s;
	transition: opacity 0.3s ease 0s;
	z-index: 1090;
	cursor:pointer;
}
#lightGallery-Gallery .thumb_cont .thumb_info .close i:after, #lightGallery-close:after{
	content: "\e01a";
	font-family: 'Slide-icons';
	font-style:normal;
}
#lightGallery-Gallery .thumb_cont .thumb_info .close:hover {
	opacity: 1;
	filter: alpha(opacity=100);
	-webkit-transition: opacity 0.3s ease;
	-moz-transition: opacity 0.3s ease;
	-o-transition: opacity 0.3s ease;
	-ms-transition: opacity 0.3s ease;
	transition: opacity 0.3s ease;
}
#lightGallery-Gallery .thumb_cont .thumb {
	display: inline-block !important;
	vertical-align: middle;
 *display: inline;
  /* IE7 inline-block hack */

  *zoom: 1;
	margin-bottom: 4px;
	margin-left: 4px;
	width: 94px;
	height: 94px;
	opacity: 0.6;
	filter: alpha(opacity=60);
	overflow: hidden;
	border-radius: 3px;
	border: 3px solid transparent;
	-webkit-transition: border-color linear .2s, opacity linear .2s;
	-moz-transition: border-color linear .2s, opacity linear .2s;
	-o-transition: border-color linear .2s, opacity linear .2s;
	-ms-transition: border-color linear .2s, opacity linear .2s;
	transition: border-color linear .2s, opacity linear .2s;
}
#lightGallery-Gallery .thumb_cont .thumb > img {
	height: 100%;
}
#lightGallery-Gallery .thumb_cont .thumb.active, #lightGallery-Gallery .thumb_cont .thumb:hover {
	opacity: 1;
	filter: alpha(opacity=100);
	border-color: #ffffff;
}
/*lightGallery Thumb*/

/*lightGallery Video*/
#lightGallery-slider .video_cont {
	display: inline-block;
	max-height: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	width: auto;
	height: auto;
	vertical-align: middle;
}
#lightGallery-slider .video_cont {
	background: none;
	max-width: 1140px;
	max-height: 100%;
	width: 100%;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}
#lightGallery-slider .video {
	width: 100%;
	height: 0;
	padding-bottom: 56.25%;
	overflow: hidden;
	position: relative;
}
#lightGallery-slider .video iframe {
	width: 100%!important;
	height: 100%!important;
	position: absolute;
	top: 0;
	left: 0;
}
/*lightGallery Video*/


/*lightGallery info Title Desc*/
#lightGallery-slider .info {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0.55);
    color: #FFFFFF;
    padding: 10px 0;
    position: absolute;
    top: 0;
    width: 100%;
}
#lightGallery-slider .info span {
  display: block;
  line-height: 1;
}
#lightGallery-slider .info span:last-child {
	margin-top:6px;
}
#lightGallery-slider .info .title {
    font-size: 16px;
    font-weight: bold;
}
#lightGallery-slider .info .desc {
    color: #DDDDDD;
    font-size: 12px;
}
/*lightGallery info Title Desc*/



/*lightGallery Close*/
#lightGallery-close {
	color: #FFFFFF;
	height: 20px;
	opacity: 0.6;
	filter: alpha(opacity=60);
	position: absolute;
	right: 20px;
	top: 20px;
	transition: opacity 0.3s ease 0s;
	-webkit-transition: opacity 0.3s ease 0s;
	-moz-transition: opacity 0.3s ease 0s;
	-o-transition: opacity 0.3s ease 0s;
	-ms-transition: opacity 0.3s ease 0s;
	width: 20px;
	z-index: 1090;
	cursor:pointer;
}
#lightGallery-close:hover {
	opacity: 1;
	filter: alpha(opacity=100);
	-webkit-transition: opacity 0.3s ease;
	-moz-transition: opacity 0.3s ease;
	-o-transition: opacity 0.3s ease;
	-ms-transition: opacity 0.3s ease;
	transition: opacity 0.3s ease;
}
  
  
</style>

  
  
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>

<script>
    	 $(document).ready(function() {
			$("#lightGallery").lightGallery({
				mode:"fade",
				speed:800,
				caption:true,
				desc:true,
				mobileSrc:true
			});
		});
    </script>
</head>
<body>
  
  
 
			</br>
	
<center>	<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kolkotob_sidebar1_AdSense1_1x1_as -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-9935930967042478"
     data-ad-host="ca-host-pub-1556223355139109"
     data-ad-host-channel="L0001"
     data-ad-slot="2999405541"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>  </center>

	</br>
	
 
  
  
<ul id="lightGallery" class="gallery">
<li data-title="Lorem Ipsum is simply dummy text of the printing and typesetting industry." data-desc="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." data-responsive-src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/mobile1.jpg" data-src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/img1.jpg"> <a href="#"> <img src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/thumb1.jpg" /> </a> </li>
<li data-title="What is Lorem Ipsum?" data-desc="Lorem Ipsum is simply dummy text of the printing and typesetting industry." data-src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/img2.jpg" data-responsive-src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/mobile2.jpg"> <a href="#"> <img src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/thumb2.jpg" /> </a> </li>
<li data-title="Where does it come from?" data-desc="Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC" data-src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/img3.jpg" data-responsive-src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/mobile3.jpg"> <a href="#"> <img src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/thumb3.jpg" /> </a> </li>
<li data-title="Why do we use it?" data-desc="It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout." data-src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/img4.jpg"  data-responsive-src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/mobile4.jpg"> <a href="#"> <img src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/thumb4.jpg" /> </a> </li>
<li data-title="Where can I get some?" data-desc="There are many variations of passages of Lorem Ipsum available," data-src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/img5.jpg"  data-responsive-src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/mobile5.jpg"> <a href="#"> <img src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/thumb5.jpg" /> </a> </li>
<li data-title="title6" data-desc="desc5" data-src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/img6.jpg" data-responsive-src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/mobile6.jpg" > <a href="#"> <img src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/thumb6.jpg" /> </a> </li>
<li data-desc="desc1" data-src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/img7.jpg" data-responsive-src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/mobile7.jpg"> <a href="#"> <img src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/thumb7.jpg" /> </a> </li>
<li data-title="title" data-desc="desc1" data-src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/img8.jpg" data-responsive-src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/mobile8.jpg"> <a href="#"> <img src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/thumb8.jpg" /> </a> </li>
<li data-title="Lorem Ipsum is simply dummy text of the printing and typesetting industry." data-desc="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." data-src="https://www.youtube.com/watch?v=eKG08z85DtY" data-responsive-src="https://www.youtube.com/watch?v=eKG08z85DtY" > <a href="#"> <img src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/Pigloo.jpg" /> </a> </li>
<li data-title="What is Lorem Ipsum?" data-desc="Lorem Ipsum is simply dummy text of the printing and typesetting industry." data-src="https://vimeo.com/1084537" data-responsive-src="https://vimeo.com/1084537"> <a href="#"> <img src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/Big-Buck-Bunny.jpg" /> </a> </li>
<li data-title="Where does it come from?" data-desc="Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC" data-src="https://www.youtube.com/watch?v=c0asJgSyxcY"  data-responsive-src="https://www.youtube.com/watch?v=c0asJgSyxcY" > <a href="#"> <img src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/TuTiTu-Train.jpg" /> </a> </li>
<li data-title="Why do we use it?" data-desc="It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout."  data-src="https://vimeo.com/35451452" data-responsive-src="https://vimeo.com/35451452"> <a href="#"> <img src="https://www.jqueryscript.net/demo/Responsive-Touch-Friendly-jQuery-Gallery-Lightbox-Plugin-lightGallery/Ninja-vs-Pirate.jpg" /> </a> </li>
</ul>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-36251023-1']);
  _gaq.push(['_setDomainName', 'jqueryscript.net']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

</body>
              
            
!

CSS

              
                
              
            
!

JS

              
                
  /** ==========================================================

* jquery lightGallery.js v1.0
* https://sachinchoolur.github.io/lightGallery/
* Released under the Apache License - https://opensource.org/licenses/Apache-2.0

=========================================================/**/

;(function($){
	"use strict";
	$.fn.lightGallery = function(options) {
		var defaults = {
				mode:'slide',
				useCSS : true,
				easing: 'ease',//'cubic-bezier(0.25, 0, 0.25, 1)',//
				speed: 1000,
				loop: false,
				auto: false,
				pause: 4000,
				escKey:true,
				rel:false,
				
				exThumbImage: false,
				thumbnail: true,
				caption:false,
				desc:false,
				controls:true,
				hideControlOnEnd:false,
				mobileSrc: false,
				mobileSrcMaxWidth :640,

				//touch
				swipeThreshold: 50,
				
				vimeoColor : 'CCCCCC',
				videoAutoplay:true,
				videoMaxWidth:855,
				dynamic:false,
				
				//callbacks
				dynamicEl : [],
				onOpen: function() {},
				onSlideBefore: function() {},
				onSlideAfter: function() {},
				onSlideNext: function() {},
				onSlidePrev: function() {},
				onBeforeClose: function(){},
				onCloseAfter: function(){}
			},
			el = $(this),
			$children,
			index,
			lightGalleryOn = false,
			html = '<div id="lightGallery-outer"><div id="lightGallery-Gallery"><div id="lightGallery-slider"></div><a id="lightGallery-close" class="close"></a></div></div>',
			isTouch = document.createTouch !== undefined || ('ontouchstart' in window) || ('onmsgesturechange' in window) || navigator.msMaxTouchPoints,
			$gallery, $galleryCont, $slider, $slide, $prev, $next, prevIndex, $thumb_cont, $thumb, windowWidth, interval, usingThumb=false, aTiming= false, aSpeed = false;
		var settings = $.extend( true, {}, defaults, options);
		var lightGallery = {
			init: function(){
				el.each(function() {
					var $this = $(this);
                	
					if(settings.dynamic == true){
						$children = settings.dynamicEl;
						index = 0;
						prevIndex = index;
						setUp.init(index);	
					} else{
						$children = $(this).children();
						$children.click(function(e){
							if(settings.rel == true && $this.data('rel')){
								var rel = $this.data('rel');
								$children = $('[data-rel="'+rel+'"]').children();
							}else{
								$children = $this.children();
							}
							e.preventDefault();
							e.stopPropagation();
							index = $children.index(this);
							prevIndex = index;
							setUp.init(index);
						}); 
					}
                });
			},	
		};
		var setUp = {
			init: function(){
				this.start();	
				this.build();
			},
			start: function(){
				this.structure();	
				this.touch();
				this.enableTouch();
				this.getWidth();
				this.closeSlide();
			},
			build: function(){
				this.loadContent(index);
				this.addCaption();
				this.addDesc();//description
				this.slideTo();
				this.buildThumbnail();	
				this.keyPress();
				this.slide(index);
				setTimeout(function(){
					$gallery.addClass('opacity');
				},50);
			},
			structure: function(){
				$('body').append(html).addClass('lightGallery');
				$galleryCont = $('#lightGallery-outer');
				$gallery = $('#lightGallery-Gallery');
				$slider = $gallery.find('#lightGallery-slider');
				var slideList = '';
				if(settings.dynamic == true){
					for(var i = 0; i<settings.dynamicEl.length; i++){
						slideList += '<div class="lightGallery-slide"></div>';	
					}	
				}else{
					$children.each(function() {
						slideList += '<div class="lightGallery-slide"></div>';
					});
				}
				$slider.append(slideList);
				$slide = $gallery.find('.lightGallery-slide');
			},		
			closeSlide: function(){
				var $this = this;
				$('#lightGallery-close').bind('click touchend', function(){
					$this.destroy();
				});
			},	
			getWidth: function(){
				var resizeWindow = function(){
					windowWidth = $(window).width();
				};
				$(window).bind('resize',resizeWindow());
			},
			doCss : function() {
				var support = function(){
					var transition = ['transition', 'MozTransition', 'WebkitTransition', 'OTransition', 'msTransition', 'KhtmlTransition'];
					var root=document.documentElement;
					for (var i=0; i<transition.length; i++){
						if (transition[i] in root.style){
							//cssPrefix = transition[i].replace('Transition', '').toLowerCase();
							//cssPrefix == 'transition' ? cssPrefix = 'transition' : cssPrefix = ('-'+cssPrefix+'-transition');
							return true;
						}
					}
				};
				if(settings.useCSS && support() ){
					return true;
				}
				return false;
			},
			enableTouch : function(){
				if ( isTouch ){
					var $this = this,
					distance,
					swipeThreshold = settings.swipeThreshold,
					startCoords = {}, 
					endCoords = {};					
					$('body').bind('touchstart', function(e){
						$(this).addClass('touch');
		  				endCoords = e.originalEvent.targetTouches[0];
		    			startCoords.pageX = e.originalEvent.targetTouches[0].pageX;
						$('.touch').bind('touchmove',function(e){
							e.preventDefault();
							e.stopPropagation();
		    				endCoords = e.originalEvent.targetTouches[0];
						});	
			           	return false;
	           			}).bind('touchend',function(e){
	           				e.preventDefault();
							e.stopPropagation();
	   						distance = endCoords.pageX - startCoords.pageX;
	       					if( distance >= swipeThreshold ){
	       						$this.prevSlide();
								clearInterval(interval);
	       					}
	       					else if( distance <= - swipeThreshold ){
	       						$this.nextSlide();
								clearInterval(interval);
	       					}
	       					$('.touch').off('touchmove').removeClass('touch');						
					});
           		}
			},
			touch:function(){
				var xStart,xEnd;
				var $this = this;
				$('.lightGallery').bind('mousedown',function(e){
					e.stopPropagation();
					e.preventDefault();
					xStart = e.pageX;
				});
				$('.lightGallery').bind('mouseup',function(e){
					e.stopPropagation();
					e.preventDefault();
					xEnd = e.pageX; 
					if(xEnd-xStart>20){
						$this.nextSlide();
					}else if(xStart-xEnd>20){
						$this.prevSlide();
					}
				});
			},
			isVideo: function(src){
				var youtube = src.match(/youtube\.com\/watch\?v=([a-zA-Z0-9\-_]+)/);
				var vimeo = src.match(/vimeo\.com\/([0-9]*)/);
				if( youtube || vimeo){
					return true;
				}
			},
			loadVideo: function(src,a,_id){
				var youtube = src.match(/watch\?v=([a-zA-Z0-9\-_]+)/);
				var vimeo = src.match(/vimeo\.com\/([0-9]*)/);
				var video = '';
				if(youtube){
					if(settings.videoAutoplay === true && a === true){
						a = '?autoplay=1&rel=0&wmode=opaque';	
					}else{
						a = '?wmode=opaque';
					}	
							
					video = '<iframe id="video'+_id+'" width="560" height="315" src="//www.youtube.com/embed/'+youtube[1]+a+'" frameborder="0" allowfullscreen></iframe>';	
									
				}else if(vimeo){
					if(settings.videoAutoplay === true && a === true){
						a = 'autoplay=1&amp;';	
					}else{
						a = '';	
					}
					
					video = '<iframe id="video'+_id+'" width="560" height="315"  src="https://player.vimeo.com/video/'+vimeo[1]+'?'+a+'byline=0&amp;portrait=0&amp;color='+settings.vimeoColor+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
				
				}
				return '<div class="video_cont" style="max-width:'+settings.videoMaxWidth+'px !important;"><div class="video">'+video+'</div></div>';
			},	
			loadContent : function (index){
				var $this = this;
				var i,j,ob,l= $children.length - index;
				var src;
				$this.autoStart();
				if(settings.mobileSrc===true && windowWidth <= settings.mobileSrcMaxWidth){
					if(settings.dynamic == true){
						src = settings.dynamicEl[0]['mobileSrc'];	
					}else{
						src = $children.eq(index).attr('data-responsive-src');	
					}
				}
				else{
					if(settings.dynamic == true){
						src = settings.dynamicEl[0]['src'];	
					}else{
						src = $children.eq(index).attr('data-src');	
					}
				}
				if(!$this.isVideo(src)){ 
					$slide.eq(index).prepend('<img src="'+src+'" />');
					ob = $('img');
				}
				else{
					$slide.eq(index).prepend($this.loadVideo(src,true,index));
					ob = $('iframe');
					if(settings.auto && settings.videoAutoplay === true){
						clearInterval(interval);
					}
				}
				if($children.length > 1){
					$slide.eq(index).find(ob).on('load error',function(){
						for (i=0; i<=index-1; i++){ 
							var src;
							if(settings.mobileSrc===true && windowWidth <= settings.mobileSrcMaxWidth){
								if(settings.dynamic == true){
									src = settings.dynamicEl[index-i-1]['mobileSrc'];	
								}else{
									src = $children.eq(index-i-1).attr('data-responsive-src');		
								}
							}
							else{
								if(settings.dynamic == true){
									src = settings.dynamicEl[index-i-1]['src'];	
								}else{
									src = $children.eq(index-i-1).attr('data-src');	
								}
							}
							if(!$this.isVideo(src)){ 
								$slide.eq(index-i-1).prepend('<img src="'+src+'" />');
							}
							else{
									$slide.eq(index-i-1).prepend($this.loadVideo(src,false,index-i-1));
								}
						}
						for (j=1; j<l; j++){
							var src;
							if(settings.mobileSrc===true && windowWidth <= settings.mobileSrcMaxWidth){
								if(settings.dynamic == true){
									src = settings.dynamicEl[index+j]['mobileSrc'];	
								}else{
									src = $children.eq(index+j).attr('data-responsive-src');		
								}
							}
							else{
								if(settings.dynamic == true){
									src = settings.dynamicEl[index+j]['src'];	
								}else{
									src = $children.eq(index+j).attr('data-src');
								}
							}
							if(!$this.isVideo(src)){
								$slide.eq(index+j).prepend('<img src="'+src+'" />');
							}
							else{
									$slide.eq(index+j).prepend($this.loadVideo(src,false,index+j));
								}
						}
					});
				}
			},
			addCaption:function(){
				if(settings.caption === true){
					var i, title = false;
					for(i=0;i < $children.length; i++){
						if(settings.dynamic == true){
							title = settings.dynamicEl[i]['caption'];	
						}else{
							title = $children.eq(i).attr('data-title');
						}
						if(typeof title == 'undefined' || title == null){
							title = 'image '+i+'';	
						}
						$slide.eq(i).append('<div class="info group"><span class="title">'+title+'</span></div>');
					}	
				}
			},
			addDesc:function(){
				if(settings.desc === true){
					var i, description = false;
					for(i=0;i < $children.length; i++){
						if(settings.dynamic == true){
							description = settings.dynamicEl[i]['desc'];	
						}else{
							description = $children.eq(i).attr('data-desc');;
						}
						if(typeof description == 'undefined' || description == null){
							description = 'image '+i+'';
						}
						if(settings.caption === false){
							$slide.eq(i).append('<div class="info group"><span class="desc">'+description+'</span></div>');	
						}else{
							$slide.eq(i).find('.info').append('<span class="desc">'+description+'</span>');	
						}
					}			
				}
			},
			buildThumbnail: function(){
				if(settings.thumbnail===true && $children.length > 1){
					var $this = this;
					$gallery.append('<div class="thumb_cont"><div class="thumb_info"><span class="close ib"><i class="bUi-iCn-rMv-16" aria-hidden="true"></i></span></div><div class="thumb_inner"></div></div>');
					$thumb_cont = $gallery.find('.thumb_cont');
					$prev.after('<a class="cLthumb"></a>');
					$gallery.find('.cLthumb').bind('click touchend', function(){
						$thumb_cont.addClass('open');
						if($this.doCss() && settings.mode === 'slide'){
							$slide.eq(index).prevAll().removeClass('nextSlide').addClass('prevSlide');	
							$slide.eq(index).nextAll().removeClass('prevSlide').addClass('nextSlide');	
						}
					});
					$gallery.find('.close').bind('click touchend', function(){
						$thumb_cont.removeClass('open');		
					});
					var thumbInfo = $gallery.find('.thumb_info');
					var $thumb_inner = $gallery.find('.thumb_inner');
					var thumbList = '';
					var thumbImg;
					if(settings.dynamic == true){
						for(var i = 0; i<settings.dynamicEl.length; i++){
							thumbImg = settings.dynamicEl[i]['thumb'];	
							thumbList += '<div class="thumb"><img src="'+thumbImg+'" /></div>';	
						}	
					}else{
						$children.each(function() {
							if(settings.exThumbImage === false || typeof $(this).attr(settings.exThumbImage) == 'undefined' || $(this).attr(settings.exThumbImage) == null){
									thumbImg = $(this).find('img').attr('src');	
								}
								else{
										thumbImg = $(this).attr(settings.exThumbImage);	
									}
							thumbList += '<div class="thumb"><img src="'+thumbImg+'" /></div>';
						});	
					}
					$thumb_inner.append(thumbList);
					$thumb = $thumb_inner.find('.thumb');
					$thumb.bind('click touchend', function(){
						usingThumb = true;
						var index = $(this).index();
						$thumb.removeClass('active');
						$(this).addClass('active');
						$this.slide(index);
						clearInterval(interval);
					});	
					thumbInfo.prepend('<span class="ib count">All photos ('+$thumb.length+')</span>');
				}
				
			},
			slideTo : function(){
				var $this = this;
				if(settings.controls === true && $children.length > 1){
					$gallery.append('<div id="lightGallery-action"><a id="lightGallery-prev"></a><a id="lightGallery-next"></a></div>');
					$prev = $gallery.find('#lightGallery-prev');
					$next = $gallery.find('#lightGallery-next');	
					$prev.bind('click touchend', function(){
						$this.prevSlide();
						clearInterval(interval);
					});
					$next.bind('click touchend', function(){
						$this.nextSlide();
						clearInterval(interval);
					});			
				}
			},
			autoStart: function(){
				var $this = this;
				if(settings.auto === true){
					interval = setInterval(function(){
						if(index+1 < $children.length){
							index = index;
						}
						else{
							index = -1;
						}
						index++;
						$this.slide(index);
					}, settings.pause);	
				}
			},
			keyPress : function(){
				var $this = this;
				$(window).bind('keyup', function(e){
					e.preventDefault();
					e.stopPropagation();
					if (e.keyCode === 37){
						$this.prevSlide();
						clearInterval(interval);
					}
					if (e.keyCode === 38 &&  settings.thumbnail===true){
						if(!$thumb_cont.hasClass('open')){
							if($this.doCss() && settings.mode === 'slide'){
								$slide.eq(index).prevAll().removeClass('nextSlide').addClass('prevSlide');	
								$slide.eq(index).nextAll().removeClass('prevSlide').addClass('nextSlide');
							}
							$thumb_cont.addClass('open');	
						}
					}
					else if (e.keyCode===39){
						$this.nextSlide();
						clearInterval(interval);
					}
					if (e.keyCode === 40 && settings.thumbnail===true){
						if($thumb_cont.hasClass('open')){
							$thumb_cont.removeClass('open');	
						}
					}
					else if (settings.escKey === true && e.keyCode === 27) {
						if(settings.thumbnail===true &&  $thumb_cont.hasClass('open') ){
							$thumb_cont.removeClass('open');
						}
						else{
								$this.destroy();
							}
					}
				});
			},
			nextSlide : function (){
				var $this = this;
				index = $slide.index($slide.eq(prevIndex));
				if(index+1 < $children.length){
					index++;
					$this.slide(index);
				}
				else{
					if(settings.loop){
						index = 0;
						$this.slide(index);
					}
					else if(settings.mode==='fade' && settings.thumbnail===true && $children.length > 1){ 
						$thumb_cont.addClass('open');
					}
				}
				settings.onSlideNext.call( this );
			},
			prevSlide : function (){
				var $this = this;
				index = $slide.index($slide.eq(prevIndex));
				if(index > 0){
					index--;
					$this.slide(index);
				}
				else{
					if(settings.loop){
						index = $children.length -1;
						$this.slide(index);
					}
					else if(settings.mode==='fade' && settings.thumbnail===true && $children.length > 1){ 
						$thumb_cont.addClass('open');
					}
				}
				settings.onSlidePrev.call( this );
			},
			slide : function (index){
				if(lightGalleryOn){
					if(!$slider.hasClass('on')){
						$slider.addClass('on');
					}
					if(this.doCss() && settings.speed !== ''){
						if(!$slider.hasClass('speed')){
							$slider.addClass('speed');
						}
						if(aSpeed === false){
							$slider.css('transition-duration',settings.speed+'ms');
							aSpeed = true;
						}
					}
					if(this.doCss() && settings.easing !== ''){
						if(!$slider.hasClass('timing')){
							$slider.addClass('timing');
						}
						if(aTiming === false){
							$slider.css('transition-timing-function',settings.easing);
							aTiming = true;
						}
					}
					settings.onSlideBefore.call( this );
				}
				if(settings.mode === 'slide'){
					if(this.doCss() && !$slider.hasClass('slide')){
						$slider.addClass('slide');
					}
/*					if(this.doCss()){
						$slider.css({ 'transform' : 'translate3d('+(-index*100)+'%, 0px, 0px)' });
					}*/
					if(!this.doCss() && !lightGalleryOn){
						$slider.css({ left : (-index*100)+'%' });
						//$slide.eq(index).css('transition','none');
					}
					else if(!this.doCss() && lightGalleryOn){
						$slider.animate({ left : (-index*100)+'%' },settings.speed,settings.easing);
					}
				}
				else if(settings.mode === 'fade'){
					if(this.doCss() && !$slider.hasClass('fadeM')){
						$slider.addClass('fadeM');	
					}else if(!this.doCss() && !$slider.hasClass('animate')){
							$slider.addClass('animate');	
						}
					if(!this.doCss() && !lightGalleryOn){
						$slide.fadeOut(100);
						$slide.eq(index).fadeIn(100);
					}else if(!this.doCss() && lightGalleryOn){
						$slide.eq(prevIndex).fadeOut(settings.speed,settings.easing);
						$slide.eq(index).fadeIn(settings.speed,settings.easing);		
					}
				}
				if(index+1 >= $children.length && settings.auto && settings.loop === false){
					clearInterval(interval);
				}
				$slide.eq(prevIndex).removeClass('current');
				$slide.eq(index).addClass('current');
				if(this.doCss() && settings.mode === 'slide'){
					if(usingThumb === false){
						$('.prevSlide').removeClass('prevSlide');
						$('.nextSlide').removeClass('nextSlide');
						$slide.eq(index-1).addClass('prevSlide');
						$slide.eq(index+1).addClass('nextSlide');
					}else{
						$slide.eq(index).prevAll().removeClass('nextSlide').addClass('prevSlide');	
						$slide.eq(index).nextAll().removeClass('prevSlide').addClass('nextSlide');
					}
				}
				if(settings.thumbnail===true && $children.length > 1){
					$thumb.removeClass('active');
					$thumb.eq(index).addClass('active');
				}
				
				if(settings.controls && settings.hideControlOnEnd && settings.loop === false){
					if(index === 0){
						$prev.addClass('disabled');
					}else if( index === $children.length - 1 ){
						$next.addClass('disabled');
					}
					else{
						$prev.add($next).removeClass('disabled');		
					}	
				}
				prevIndex = index;
				lightGalleryOn === false ? settings.onOpen.call(this) : settings.onSlideAfter.call(this);
				lightGalleryOn = true;
				usingThumb = false;
			},
			destroy : function(){
				settings.onBeforeClose.call( this );
				lightGalleryOn = false;
				clearInterval(interval);
				$('.lightGallery').unbind('mousedown');
				$('.lightGallery').unbind('mouseup');
				$('body').removeClass('touch');
				$('body').unbind('touchstart');
				$('body').unbind('touchmove');
				$('body').unbind('touchend');
				$(window).unbind('resize');
				$(window).unbind('keyup');
				$gallery.addClass('fadeM');
				setTimeout(function(){
					$galleryCont.remove();
					$('body').removeClass('lightGallery');
				},500);
				settings.onCloseAfter.call( this );
 			}
		};
		lightGallery.init();
	};
}(jQuery));


              
            
!
999px

Console