Stop action if trigger is clicked a second time

what about moving the 2nd trigger over after the click. So, have a second element off scene and move it over after you click on the trigger the first time.

Another option would be to run a javascript function that checks a condition … say if a variable is true or false then disable the click. One way to do it is to add a class to the element and then check if it has that class and immediately return…

if (element.classList.contains("clicked")){
	return;
} else {
    // add your action here
    //--> example: hypeDocument.showNextScene... or hypeDocument.startTimelineNamed...
	element.classList.add("clicked");
}
1 Like