Q:

Remove two classes wit jQuery

I want to remove both classes mousemove and scrolling but in my code it only works once.
What do I need to change in my code?
Fiddle : jsfiddle.net
(function (){
    var timer;

    clearTimeout(timer);
    $('body').mousemove(function() {       
        $('body').addClass('mousemove');        
    }); 

    $(window).scroll(function() { 
        $('body').addClass('scrolling');   
    }); 

    timer = setTimeout(function(){$('body').removeClass('scrolling mousemove')}, 2000);

})();

A:

try this
   ....
  timer = setTimeout(function(){
         $('body').removeClass('scrolling mousemove');
   },2000);
  ...

A:

Just pass both the class names separated by a space
(function () {
    var timer;

    $('body').mousemove(function () {
        $('body').addClass('mousemove');
        startTimer();
    });

    $(window).scroll(function () {
        $('body').addClass('scrolling');
        startTimer();
    });

    function startTimer() {
        clearTimeout(timer);
        // How To Remove 2 class 'scrolling'&'mousemove' in Body
        timer = setTimeout(function () {
            $('body').removeClass('scrolling mousemove')
        }, 2000);
    }
})();

Demo: Fiddle

