This time I will share jQuery Plugin and tutorial about Minimal Background Image Fader with jQuery – bgfader, hope it will help you in programming stack.
Just another jQuery responsive background slideshow plugin which fades through an array of background images within a specific container. It supports auto resizing of background images to fit any screen size.
How to use it:
1. Download the bgfader plugin and include the bgfader.js
script after loading jQuery library.
1 |
< script src = "//code.jquery.com/jquery-1.11.3.min.js" ></ script > |
2 |
< script src = "js/bgfader.js" ></ script > |
2. Create a slideshow content with a fixed height.
1 |
.banner { height : 400px ; } |
3. Call the function on the ‘banner’ container and specify an array of background images.
1 |
var myBgFader = $( '.banner' ).bgfader([ |
4. Start the background slideshow.
5. Several options to customize the background slideshow.
1 |
var myBgFader = $( '.header' ).bgfader([ |
Change log:
2015-12-04
- remove overlay when ‘destroy’.
2015-12-01
This awesome jQuery plugin is developed by naoxink. For more Advanced Usages, please check the demo page or visit the official website.