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
  }
});

admin
Leave a Reply

Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages