dom-behavior-hover
Install
npm install dom-behavior-hover
Usage
; const el = document;eltextContent = 'Hello universe!';documentbody; const hover = ; //You can set events outside the constructor too.//In a touch environment setting events//like this won't be as useful.hover;
About
Quickly give an element hover behaviors.
For saving memory when in a touch device the hover/unhover constructor methods do not get used.
dom-behavior-hover
uses dom-events-mixin