I would like to make 3 or more animation blocks that, when clicking, would change according to the seconds, until someone clicks on one of the objects.
The function is working to click. Clicking switches between classes.
I wanted it to run until it was clicked
var toggleClasscontentflow = function() {
$('div.prime').click(function(){
$(this).toggleClass('primeclicked');
Exchange
});
$('div.second').click(function(){
$(this).toggleClass('secondclicked');
Exchange
});
$('div.third').click(function(){
$(this).toggleClass('thirdclicked');
Exchange
});};
$(document).ready(toggleClasscontentflow);
That is, swap between the three until you click on one of them