Mouse Scroll

by th3uiguy

HTML

<div id="test"></div>

CSS

#test {
    height: 100px;
    background-color: red;
}

JavaScript

$( '#test' ).on( 'DOMMouseScroll mousewheel', function () {
    $( this ).css({ backgroundColor: 'blue' });
});