Skip to content

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

Notifications You must be signed in to change notification settings

jamesbechet/element-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published