To do that without jQuery, you need to loop through all the elements and add a click event listener. So something like this...   var controlElements = document.querySelectorAll(".slider-controls div"); Array.prototype.forEach.call(controlElements, function(element, index) { element.addEventListener("click", function(event) { TweenMax.killDelayedCallsTo(nextSlide); TweenMax.killDelayedCallsTo(nextSlideDescription); nextSlide(index); nextSlideDescription(index); });
    • Thanks
    • Like
    4