SO - 19441806

by Arun P Johny

HTML

<div></div>

CSS

div {
    border: 1px solid red;
    height: 200px;
}

JavaScript

$('div').hover(function () {
    $(this).stop(true, true).animate({
        backgroundColor: 'black'
    })
}, function () {
     $(this).stop(true, true).animate({
        backgroundColor: 'white'
    })
})