/gliojs

Trigger a anything you want when user try go out your site.

Primary LanguageJavaScript

glio.js

Trigger anything you want when user try move out your site. Less than 1kb.

Usage:

Import the library <script src='glio.min.js'></script> in your site.

This library works with two arguments. The direction and a callback, who will be triggered:
glio( direction, callback ).

Directions:

  • top-left
  • top-right
  • bottom-left
  • bottom-right

See the demostration here.