Swim89 Swim89 - 1 year ago 192
jQuery Question

jQuery add/remove Class with fadeIn/Out

I would to apply a fadeIn effect to a addClass function..and fadeOut to removeClass...

Can you help me?

This is my code




Answer Source

Fade In:

$("#loader").fadeIn("slow", function() {

Fade Out:

$("#loader").fadeOut("slow", function() {

As another user said, you may want to look into using toggleClass.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download