Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A jQuery plugin to fade the background-color of an element.
JavaScript
branch: master
Failed to load latest commit information.
src
.gitignore
README.md
jquery.colorfade.js
jquery.colorfade.min.js Version 1.0.1

README.md

jQuery Color Fade plugin

A jQuery plugin to fade the background-color of an element.

View a JS Bin demo.

Use

$('myElement').colorFade();

// And, with options:   
$('myElement').colorFade({
    'option': 'value'
});

Options:

  • fadeColor The color of the background that we are fading out. Can be either:
    • a Hex color: #000 || #000000
    • an RGB color: rgb(155, 155, 155)
    • or a named color: blue
    • Default: yellow
  • fadeTime The time (in milliseconds) the color will take to fade from 100% to 0% opacity.
    • Integer
    • Default: 800
  • delayTime The time (in milliseconds) before the fade effect will start.
    • Integer
    • Default: 600
Something went wrong with that request. Please try again.