Trigger anything you want when user try move out your site. Less than 1kb.
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 )
.
- top-left
- top-right
- bottom-left
- bottom-right