# image-zoom-on-hover

> Zoom images when hovering without the need of a higher resolution

Latest version **1.0.0** (published 2020-04-30) · 0 weekly downloads

## Install

```sh
npm install image-zoom-on-hover
pnpm add image-zoom-on-hover
yarn add image-zoom-on-hover
bun add image-zoom-on-hover
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-04-30 |
| First published | 2020-04-30 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Teinor |
| Maintainers | teinor |
| Keywords | image, image-zoom, image-zoom-on-hover, zoom, zoom on hover, image zoom, zoom without good resolution, image zoom on hover, hover, photo, photo zoom, photo zoom on hover, light |

## Links

- npm: https://www.npmjs.com/package/image-zoom-on-hover
- Repository: https://github.com/teinorsa/image-zoom-on-hover
- Homepage: https://github.com/teinorsa/image-zoom-on-hover#readme
- Issues: https://github.com/teinorsa/image-zoom-on-hover/issues
- npm.io page: https://npm.io/package/image-zoom-on-hover

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-04-30

## README

# Image zoom on hover
##### Zoom images when hovering without the need of a higher resolution

### Demo

You can see a demo into a demo/index.html

### Usage
Just put the image into a container with the `image-hover-zoom` class and if you want you can add attribute scale to that div.

For example:
```
        <div class='image-hover-zoom' scale="2.0">
            <img src='https://dummyimage.com/600x400/000/fff'>
        </div>
```

Full example:

```
<!DOCTYPE html>
<html lang='en'>
<head>
    <meta charset='UTF-8'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title>Document</title>
</head>
<body>
    <div style="display: flex; justify-content: center; align-items: center; width: 100%; height: 100vh;">
        <div class='image-hover-zoom' scale="2.0">
            <img src='https://dummyimage.com/600x400/000/fff'>
        </div>
    </div>
    <script src='/index.js'></script>
</body>
</html>
```

In this case index.js is our zoom plugin

---
_Source: https://npm.io/package/image-zoom-on-hover · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
