Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.01 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.01 KB

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.