Illookinati.js

Illookinati helps any element watch the mouse.. constantly.


Installation:

            
                bower install illookinati
            
        

Usage:

            
                illookinati({
                    target: document.querySelector('img#giphy'),
                    max: 50, // optional max angle
                    targetPerspective: '800px', // optional perspective of the element
                    useDistance: false // optional, if true the angle of rotation will depend on 
                                       // cursor's distance from the target (frog gif uses it)
                });
            
        
Fork me on GitHub and follow me on Twitter