I am trying to understand this implementation of mousewheel.jquery.
$('.page').mousewheel(function(event, delta) {
event.preventDefault(); // if you want to prevent the window from scrolling
$(this).animate({left: (delta>0 ? '+' : '-')+'40px'});
});
What does ?
and :
do in:
$(this).animate({left: (delta>0 ? '+' : '-')+'40px'});