Pretty new to JS and couldn't find any answers. I have a problem getting ScrollReveal to work on a class that is revealed after clicking a button.
Does anybody know what I'm doing wrong?
function openClassOpen () { var wrapperSecond = document.getElementById("wrapper-second"); if(wrapperSecond.classList.contains("open")) { ScrollReveal().reveal('.slide-top7', { delay: 1700 ,origin: 'bottom', distance: '50px', duration: 1500 }); } }
Tnx in advance!