JavaScript CSS Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
chrome
standalone
test
MIT-LICENSE.txt
README.markdown
Rakefile

README.markdown

Flying Focus · Focus Snail · Focus Zoom · Focus Hug

focus-hug.js

To use, just include <script src="focus-hug.js"></script> inside either <head> or <body>. 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.