how to add a class in classlist and remove after 100 ms using jquery

JavaScript
var header = $('#header');
header.addClass('blue');
setTimeout(function() {
    header.removeClass('blue');
}, 4000);

Source

Also in JavaScript: