Add touch events

function addListeners() {
	document.querySelectorAll(".flip-container").forEach(function(elem) {
		elem.addEventListener("touchstart", function() {
			flipContainer.classList.toggle('trigger');
		});
	});
}
addListeners();

Leave a Reply

Your email address will not be published. Required fields are marked *