0
I have several elements with the class. track, when anyone is clicked the div #Controls appears with this animation, but I need it to occur only once. I tried several ways from the internet but could not, one that came closer did not repeat when clicking on the same element with the class, but clicking on another element that repeats. Here:
$(document).ready(
function(){
$(".track").one("click", function () {
$("#controls").fadeIn()
.css({bottom:-50,position:'absolute'})
.animate({bottom:0}, 500, function() {
});
});
});
Friend, thank you so much for the answer! but I tested it here and it didn’t work (the script in general)... it worked there for you?
– Thiago Soubra
Sorry, I just forgot to add a parenthesis. Try again :p
– Adriano Martins
Perfect friend!!! muuuuuito thanks xD
– Thiago Soubra