how can I partially fade out an image out with jQuery -


this question has answer here:

i have background image. want fade out part-way when page loads, meaning want effect of fadeout -- instead of making image invisible want stop part-way semi-visible.

is there way of doing fadeout? there method use?

did tried .animate(properties, duration) function?

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

or use .fadeto(duration, opacity) function:

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

demo


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -