bgfader

I allways try to create the plugins for an easy-as-hell use, for this one, you only need to include the .css and .js files in your HTML as:

<link rel="stylesheet" type="text/css" href="css/bgfader.css">
<script scr="js/bgfader.js"></script>
;

Then initialize then plugin:

var bgfader = $('#myDiv').bgfader([
    'img/image1.jpg',
    'img/image2.png',
    'http://externalurl.com/someimageilike.jpg'
], {
    'speed': 3000,
    'timeout': 2000,
    'opacity': 0.4
}).start()

Done!

DOWNLOAD from GitHub

« Back to naoxink.hol.es