An awesome and lightweight library for performing spotlight in your DOM elements, setting an animated overlay to the rest of the page.
$('#my-element').setFocus(options);
Focusable.setFocus($('#my-element'), options);
Focusable.refresh();
Focusable.hide();
Property | Value | Description |
---|---|---|
fadeDuration | Number | Duration of the overlay transition (milliseconds). |
hideOnClick | Boolean | Hides the overlay when the user click into it. |
hideOnESC | Boolean | Hides the overlay when the user press Esc. |
findOnResize | Boolean | Refind the element in the DOM in case that the element don't still exists. |
- jQuery
- Add hightlight option
- Add comments to code
- Remove jQuery dependency
- Support multiple elements at same time