I have integrated RoyalSlider and Lightbox.js into my project, but for some reason, the functionality is not working properly. When clicking on an image, it should pop up in the lightbox, but the image fails to load.
You can view a demo of the site at . Scroll to the bottom of the page to see a horizontal slider. Clicking on an image does not display the full image as expected.
HTML:
<section id="homeGallery" class="hidden-xs">
<div id="homeGallerySlider" class="rsDefault">
<div class="image-set">
<a href="#" data-lightbox="gallery"><span class="imgHover"><i class="fa fa-picture-o"></i></span><img src="img/opa-home-gallery-1.jpg"></a>
<a href="#" data-lightbox="gallery"><span class="imgHover"><i class="fa fa-picture-o"></i></span><img src="img/opa-home-gallery-2.jpg"></a>
<a href="#" data-lightbox="gallery"><span class="imgHover"><i class="fa fa-picture-o"></i></span><img src="img/opa-home-gallery-3.jpg"></a>
<a href="#" data-lightbox="gallery"><span class="imgHover"><i class="fa fa-picture-o"></i></span><img src="img/opa-home-gallery-4.jpg"></a>
</div>
<div class="image-set">
<a href="#" data-lightbox="gallery"><span class="imgHover"><i class="fa fa-picture-o"></i></span><img src="img/opa-home-gallery-5.jpg"></a>
<a href="#" data-lightbox="gallery"><span class="imgHover"><i class="fa fa-picture-o"></i></span><img src="img/opa-home-gallery-6.jpg"></a>
<a href="#" data-lightbox="gallery"><span class="imgHover"><i class="fa fa-picture-o"></i></span><img src="img/opa-home-gallery-7.jpg"></a>
<a href="#" data-lightbox="gallery"><span class="imgHover"><i class="fa fa-picture-o"></i></span><img src="img/opa-home-gallery-1.jpg"></a>
</div>
</div>
</section>
JavaScript:
// Home Page Gallery Slider
jQuery(document).ready(function($){
$('#homeGallerySlider').royalSlider({
keyboardNavEnabled: false,
autoScaleSlider: false,
imageAlignCenter: false,
imageScalePadding: 0,
arrowsNav: true,
arrowsNavAutoHide: false,
randomizeSlides: false,
slidesOrientation: 'horizontal',
usePreloader: false,
navigateByClick: false,
slidesSpacing: 0,
controlNavigation: 'none',
imageScaleMode: 'none',
loop: true,
slideDrag: false
});
});