1.0.4 • Published 5 years ago

hover-js v1.0.4

Weekly downloads
6
License
ISC
Repository
github
Last release
5 years ago

hover-js

Library to add class to elements when user mouse is over another element.

npm.io

Usage

Load as ES6 module

Load module

import hoverPlugin from 'hover-js';

Load as script

Load the script file.

Then do the following:

var hoverPlugin = hover_js.default;

Usage

You can start it

hoverPlugin.start()

also if you want to stop it, you can use hovePlugin.stop()

use data-hover and data-hover-target attributes on Your HTML to apply the class that is under data-hover to the elements that satisfied selector specified on data-hover-target.

Example

https://codepen.io/soyto/pen/qgPLrr

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago