Created
September 17, 2015 14:03
-
-
Save bratsun/a1e9535fe3282806b0ed to your computer and use it in GitHub Desktop.
Hover
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.block').on({ | |
mouseenter: function () { | |
var t = $(this); | |
$('.block:visible').not(t).addClass('hover'); | |
}, | |
mouseleave: function () { | |
var t = $(this); | |
$('.block:visible').not(t).removeClass('hover'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment