element-picker
v1.0.1
Published
A JavaScript library that allows you to point and click to get the hovered element.
Downloads
14
Maintainers
Readme
Element Picker
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.