Releases: romellem/hover-image
Releases · romellem/hover-image
v0.4.0
Fix
- Renames
orginalSrcAttribute
option tooriginalSrcAttribute
. The misspelledorginalSrcAttribute
can still be used and will overrideoriginalSrcAttribute
if both are set. - Optimization, preloads images in single loop.
Feature
- Adds
focus
andblur
listeners, matching themouseover
andmouseout
listeners, respectively.
Chore
- Bumps various dev / build dependencies.
v0.3.5
v0.3.4
v0.3.3
Fixes
- Dependency Upgrades - Upgrades various dependencies, resolves some security warnings
v0.3.2
v0.3.1
v0.3.0
v0.2.0
Features
-
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:<a href="#" data-hover-src="hover.png"> <img src="original.png"> This icon will change when the entire link is hovered! </a>