javascript - Show only one overlay on hover -
I'm having trouble with my jQuery code, instead of displaying the overlay on hover, then all of them appear When I hover on one I have made JS bin: if you hover over the images, all the overlays are visible, but what is the purpose of this, how can this code work for touch users other than the ones you are moving to walk on Am I
The problem is that you are not right to animate the element - you have It must use and find the overlay that is related to that element ..., function () {$ (this) .find (".overlay"). Animate ({opacity: 1, top: "3px"}, 150);}); SaveAlement.On ("mouseleave", function () {$ (this) .find (".overlay"). Animate ({opacity: 0, top: "-23px"}, 150);}); });
Comments
Post a Comment