Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nv/focus-hug

Focus outline transition
https://github.com/nv/focus-hug

javascript ui ui-components ui-experiment

Last synced: about 2 months ago
JSON representation

Focus outline transition

Awesome Lists containing this project

README

        

[Flying Focus](//github.com/NV/flying-focus/)
· [Focus Snail](//github.com/NV/focus-snail/)
· [Focus Zoom](//github.com/NV/focus-zoom/)
· **Focus Hug**

## [focus-hug.js](http://nv.github.io/focus-hug/standalone/focus-hug.js)

To use, just include `` inside either `` or ``.
It includes all necessary CSS and has no external dependencies.

To build from source use `rake standalone`.

### API

Focus Hug exposes `focusHug` global variable.

`focusHug.trigger(element)` manually runs for the specified element.

`focusHug.enabled = true` trigger the effect on focus event.