Skip to content

Releases: romellem/hover-image

v0.4.0

29 Apr 17:38
Compare
Choose a tag to compare

Fix

  • 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.

Chore

  • Bumps various dev / build dependencies.

v0.3.5...v0.4.0

v0.3.5

29 Apr 17:34
Compare
Choose a tag to compare

Chore

  • Renames lib, publishes to @romellem/hover-image

v0.3.4...v0.3.5

v0.3.4

01 Sep 00:20
Compare
Choose a tag to compare

Chore

  • Bumps various dev / build dependencies.

v0.3.3...v0.3.4

v0.3.3

12 Aug 14:30
Compare
Choose a tag to compare

Fixes

  • Dependency Upgrades - Upgrades various dependencies, resolves some security warnings

v0.3.2...v0.3.3

v0.3.2

11 Jun 16:38
Compare
Choose a tag to compare

Documentation

  • UMD from unpkg - Fixes URL for unpkg.com.

v0.3.1...v0.3.2

v0.3.1

11 Jun 16:32
Compare
Choose a tag to compare

Documentation

  • CJS Import - Fixes documentation in CJS environments.

v0.3.0...v0.3.1

v0.3.0

11 Jun 16:14
Compare
Choose a tag to compare

Features

  • UMD Module - Bundle is now created via the Universal Module Definition, so it can be used directly in the browser without a bundler. Closes #1.
  • Rollup for bundling - Uses rollup for the bundling process.
  • Examples - Adds an HTML file for some examples.

v0.2.0...v0.3.0

v0.2.0

10 Jun 22:21
Compare
Choose a tag to compare

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>

v0.1.0...v0.2.0

v0.1.0

10 Jun 22:16
Compare
Choose a tag to compare

Initial release! Features include

  • Swap an image on hover (duh)
  • Data attributes it looks for are configurable
  • Preload the hover image before it is swapped