Skip to content

suriyagp/jquery-aim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery.aim

jQuery plugin which guesses which element user is going to be hovered/clicked.

##Examples Examples can be found the project page

##Usage Call the function on the elements to catch user aim and add a class which will be added or removed when aiming starts or ends

$('#target').aim({
    className: 'open'
});

If you want to execute a function on aim starts or ends, use the aimEnter and aimExit options

$('#hamburger').aim({

    aimEnter: function() {
        $('#menu').show();
    }, 
    
    aimExit: function(){
        $('#menu').hide();
    }
});

About

jQuery plugin which guesses which element user is going to be hovered/clicked.

Resources

Stars

Watchers

Forks

Packages

No packages published