NV / focus-hug

Focus outline transition

Home Page:http://n12v.com/focus-transition-2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Focus outline transition

http://n12v.com/focus-transition-2/

License:MIT License


Languages

Language:JavaScript 83.6%Language:CSS 12.6%Language:Ruby 3.8%