Skip to content

NV/focus-snail

gh-pages
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Flying Focus · Focus Snail · Focus Zoom · Focus Hug

Focus Snail icon

focus-snail.js

To use, just include <script src="focus-snail.js"></script> inside either <head> or <body>. It includes all necessary CSS and has no external dependencies.

To build from source use rake standalone.

Browser support

Tested in Chrome 28-32, Safari 6.1–7, Firefox 24. Focus Snail uses SVG which is not supported in IE version 8 and below.

API

Focus Snail exposes focusSnail global variable.

focusSnail.trigger(prevElement, element) manually runs the effect for prevElement to element.

focusSnail.enabled = true trigger the effect on focus event.

Chrome extension

No build step required; just load it as an unpacked extension from chrome/.

About

Leaves a trail from the previously focused element.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published