element-picker icon indicating copy to clipboard operation
element-picker copied to clipboard

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

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.