Reasons for use: increase your conversion rates, give visitors reasons to stay and grab your users’ attention!
Usage:
-
glio.init( [ direction, callback ] );
Use the method init to start. You can pass 5 arrays with all directions, if you want. The callback just trigeer one time.
Install:
-
Npm:
npm install gliojs
-
Bower:
bower install gliojs
5 Directions:
-
top
-
top-left
-
top-right
-
bottom-left
-
bottom-right
Configurations:
-
Set the configs before the init method.
-
screenWidthFragment:
the quantity of parts the height and width screen will be divided. Default: 12. -
centerTopHeight:
height of 'top' direction. When the mouse is equal or major this value, the callback is triggered. Default: 10. -
heightTopLeft:
height of 'top-left' direction. When the mouse is equal or major this value, the callback is triggered. Default: 30. -
heightTopRight:
height of 'top-right' direction. When the mouse is equal or major this value, the callback is triggered. Default: 30.
glio.config.key = value;