Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

webmandesign/jquery.hoverdir

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
12 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

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.