parish parish - 2 months ago 12
jQuery Question

change image source with delay on mouseover and mouseout

In my website I am using jQuery to change image.
I have created jQuery to do so, Now i need to do is add smooth delay on

mouseover
and
mouseout
.

I know it Could be done with
setTimeout()
but confused how to get it done.

My Fiddle

For Reference

Answer

jsfiddle

use $(".as-panel[data-index='0']") instead of $(this)

Comments