change body color when slider change when first item is active
Use the carousel callback function to change body color when slider change $(‘#demo’).on(‘slide.bs.carousel’, function (e) { if(!e.to){ //set body bgcolor }else{ //remove body bgcolor } });