# applying and removing classes for demo # you'll normally be doing interactive stuff like this with this mixin toggle = -> document.body.classList.toggle "active" setTimeout => toggle() , 1000 toggle()