# hoverclass

> Automatically add a class to selected elements on 'hover' leverageing touch events.

Latest version **1.0.6** (published 2014-10-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install hoverclass
pnpm add hoverclass
yarn add hoverclass
bun add hoverclass
```

## 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.6 |
| Published | 2014-10-16 |
| First published | 2014-05-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | korynunn |

## Links

- npm: https://www.npmjs.com/package/hoverclass
- Repository: https://github.com/KoryNunn/hoverclass
- Issues: https://github.com/KoryNunn/hoverclass/issues
- npm.io page: https://npm.io/package/hoverclass

## Dependencies (1)

- [doc-js](https://npm.io/package/doc-js.md) ^1.0.0

## Recent versions

- 1.0.6 (latest) — 2014-10-16
- 1.0.5 — 2014-07-15
- 1.0.4 — 2014-07-15
- 1.0.3 — 2014-07-15
- 1.0.2 — 2014-07-10
- 1.0.1 — 2014-05-21
- 1.0.0 — 2014-05-21

## README

# hoverclass

Automatically add a class to selected elements on 'hover' leverageing touch events.

# why?

Mobile browsers don't hover good.

This makes hover styles choppy at best.

This module fixes this by adding a customisable hover class to a select set of elements when they are touched.

# usage

Require it:

    var hoverclass = require('hoverclass');

Initialise it:

    hoverclass([class, selector]);

You can optionally pass a custom class to set on hover, by default it is .hover

You can optionally pass a custom selector to apply hover classes too, by default it is 'button, a'

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