1

I have a background image. I want to fade it out part-way when the page loads, meaning I want the effect of the fadeOut -- but instead of making the image invisible I want it to stop part-way so that it is semi-visible.

Is there a way of doing this with fadeout? Is there another method I could use?

bernie2436
  • 22,841
  • 49
  • 151
  • 244

1 Answers1

4

Did you tried .animate(properties, duration) function?

$("#image").animate({ opacity: 0.5}, 200);

or you could also use .fadeTo(duration, opacity) function:

$("#image").fadeTo(2000, 0.5);

DEMO

letiagoalves
  • 11,224
  • 4
  • 40
  • 66