Skip to content

rsbouba/jquery.hoverdir

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery.Hoverdir

This is a modified version of jquery.hoverdir.js by www.codrops.com (copyright 2012, Codrops, licensed under the MIT license).

Modifications

Removed CSS3 transitions and Modernizr requirements. Applied CSS classes instead for better flexibility and controlability via CSS.

Description

This script watches the direction from where the mouse cursor came hovering the item. In these cases the class of in-top, in-right, in-bottom or in-left is added onto the hovered item.

In case of mouse cursor leaving the item, the class of the leaving direction is applied on the item (out-top, out-right, out-bottom or out-left).

Usage

if ( jQuery().hoverdir ) {
	jQuery( '.hoverdir-container .hoverdir-item' ).each( function() {
		jQuery( this ).hoverdir();
	} );
} // /hoverdir

License

Licensed under the MIT license.

About

jQuery HoverDir plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%