remove class with time javascript code example
Example: how to add a class in classlist and remove after 100 ms using jquery
var header = $('#header');
header.addClass('blue');
setTimeout(function() {
header.removeClass('blue');
}, 4000);
var header = $('#header');
header.addClass('blue');
setTimeout(function() {
header.removeClass('blue');
}, 4000);