parish parish - 1 year ago 49
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 Source

jsfiddle

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