var toggle = document.getElementById("toggle"); var present = document.getElementById("present"); toggle.addEventListener("click", function( event ) { present.classList.toggle("fade"); });