Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

readme.md

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

Packages

No packages published
You can’t perform that action at this time.