I want to rewrite the jQuery code below in pure JavaScript to save loading time.
Here is the link to the demo page.
var playstate = function (){
$(".magicwand").addClass("logo-effect");
setTimeout(function () {
$(".magicwand").removeClass("logo-effect");
}, 6000);
}
playstate();
setInterval(playstate, 6100);