Minimal Background Image Fader with jQuery bgfader - Download Minimal Background Image Fader with jQuery - bgfader

Download Minimal Background Image Fader with jQuery – bgfader

Posted on

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.

Minimal Background Image Fader with jQuery bgfader - Download Minimal Background Image Fader with jQuery - bgfader
File Size: 5.17 KB
Views Total: 2089
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   



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 <div class="banner">
2   ...
3 </div>
1 .banner { height:400px; }

3. Call the function on the ‘banner’ container and specify an array of background images.

1 var myBgFader = $('.banner').bgfader([
2   '1.jpg',
3   '2.jpg',
4   '3.jpg',
5 ])

4. Start the background slideshow.

1 myBgFader.start()

5. Several options to customize the background slideshow.

1 var myBgFader = $('.header').bgfader([
2   '1.jpg',
3   '2.jpg',
4   '3.jpg',
5 ], {
6   'timeout': 3000,
7   'speed': 3000,
8   'opacity': 0.5
9 })

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.




source : jqueryscript.net