Skip to content

NV/focus-hug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flying Focus · Focus Snail · Focus Zoom · Focus Hug

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.