RoyalSlider doesn't wait when all images are finished loading, it applies height to slide right away it's ready.
Auto-height option automatically resizes the slider based on current slide height. Same trick can be done when transition is set to fade, or in image gallery when image scale mode is set to 'none'. "autoHeight" is provided as a module and can be easily removed from build.
If required, you can disable mouse dragging completely. You can enable arrows, or use thumbnails or bullets instead of tabs.
Virtually anything can be inside each slide.
Please don't use this HTML file as a starter file, create your own and follow steps in basic usage section of documentation
Slider JavaScript initialization code.
Additional CSS styles for current slider.
.contentSlider {
width: 100%;
}
.contentSlider,
.contentSlider .rsOverflow,
.contentSlider .rsSlide,
.contentSlider .rsVideoFrameHolder,
.contentSlider .rsThumbs {
background: #eee;
color: #000;
}
.contentSlider .rsSlide,
.contentSlider .rsOverflow {
background: #eee;
}
.contentSlider h3 {
font-size: 24px;
line-height: 31px;
margin: 12px 0 8px;
font-weight: bold;
}
.contentSlider img {
max-width: 100%;
height: auto;
display: block;
}
.content-slider-bg {
width: 86%;
padding: 24px 7%;
background: #eee;
}
HTML markup of slider.
You should include: jQuery, main slider JavaScript file, main slider CSS file, skin CSS file.
It's recommended to get jquery.royalslider.min.js from build tool and jquery.js from its official site. Always use the latest version. Feel free to combine files in one.
Make sure that paths match locations of files.