jQuery plugin to fade element background independent of its content.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
jquery.bgFader.js

README.md

bgFader

v0.2.0
9/27/2010

About

A jQuery plugin that allows a background to fade independently of its content. Supports fading in, out, or cross fading.

bgFader configuration (as well as defualts):

$(myDiv).bgFader({
    'type' : 'out',  //in, out, cross
    'duration' : 300, //animation duraction - accepts jQuery defined strings (eg slow, fast) or ms
    'newBg' : '', //new aruments for CSS 'background:' short hand declaration
    'easing' : 'linear', //linear or swing (unless you have the jQuery easing plugin installed)
    'fadeTo' : '0', //Opacity level at end of animation
    'callback' : '' //Callback function when animation has completed
});

For more visit the project site.