element-picker

1.0.1 • Public • Published

Element Picker travis npm downloads

A JavaScript library to help you point and click to get the hovered element.

Install

npm install --save element-picker

Usage

var elementPicker = require('element-picker')
 
function onClick(element) {
  console.log(element)
}
 
elementPicker.init({ onClick })

Options

backgroundColor {String} optional default='rgba(0, 0, 0, 0.1)'

The background color used when an element is being hovered.

License

MIT. Copyright (C) James Bechet.

Package Sidebar

Install

npm i element-picker

Weekly Downloads

31

Version

1.0.1

License

MIT

Last publish

Collaborators

  • jamesbechet