An awesome and small library for perform spotlight in your DOM elements, setting an animated overlay to the rest of the page.
Focusable.setFocus($('#my-element'), options);
Focusable.hide();
{
fadeDuration: 700,
hideOnClick: false,
hideOnESC: false,
findOnResize: false
}
- jQuery
- Add hightlight option
- Add comments to code
- Remove jQuery dependency
- Support multiple elements at same time