I would to apply a fadeIn effect to a addClass function..and fadeOut to removeClass...
Can you help me?
This is my code
$('#loader'+idTurno).addClass('loader');
...
$('#loader'+idTurno).removeClass('loader');
Fade In:
$("#loader").fadeIn("slow", function() { $(this).addClass("loader"); });
Fade Out:
$("#loader").fadeOut("slow", function() { $(this).removeClass("loader"); });
As another user said, you may want to look into using toggleClass
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With