This time I will share jQuery Plugin and tutorial about Fullscreen Responsive Background Slideshow with jQuery – cb-fsss.js, hope it will help you in programming stack.
A lightweight and easy-to-use jQuery plugin for presenting an array of images as backgrounds in a fullscreen, responsive slideshow. The plugin has the ability to resize and center the images on the screen when the screen size changes, while preserving aspect ratios.
How to use it:
1. Put jQuery library and the cb-fsss.min.js jQuery plugin into your html document.
1 |
< script src = "//code.jquery.com/jquery-1.11.3.min.js" ></ script > |
2 |
< script src = "dist/cb-fsss.min.js" ></ script > |
2. Generate a fullscreen background slideshow that loads image sources from img
option.
1 |
$( ".image" ).cbFullScreenSlideShow({ |
3. Hide the horizontal and vertical scrollbars.
4. Customize the background slideshow using the following options.
01 |
$( ".image" ).cbFullScreenSlideShow({ |
14 |
background: "rgba(1,1,1,0)" , |
5. API methods.
2 |
$( "body" ).cbFullScreenSlideShow( "start" ); |
5 |
$( "body" ).cbFullScreenSlideShow( "stop" ); |
Changelog:
2018-10-18
2016-02-09
This awesome jQuery plugin is developed by maechabin. For more Advanced Usages, please check the demo page or visit the official website.