You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Renames orginalSrcAttribute option to originalSrcAttribute. The misspelled orginalSrcAttribute can still be used and will override originalSrcAttribute if both are set.
Optimization, preloads images in single loop.
Feature
Adds focus and blur listeners, matching the mouseover and mouseout listeners, respectively.
Mouse events on non-image elements - That is, rather than only being able to have an <img> be changed when it gets hovered, now you can have any element have a child<img> tag change when hovered. This hopefully makes this library much more useful when wanting to apply hover effects to things like a link that has an icon in it. This new feature allows for things like this:
<ahref="#" data-hover-src="hover.png"><imgsrc="original.png">
This icon will change when the entire link is hovered!
</a>