Last active
December 17, 2015 07:29
-
-
Save keithcollins/5572890 to your computer and use it in GitHub Desktop.
Simple rollover effects with jQuery
This file contains hidden or 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
$('.story-box').on('mouseenter', function(){ | |
$(this).addClass('story-box-up').find('.tcontents_title a').css('color', '#A80405'); | |
}).on('mouseleave', function(){ | |
$(this).removeClass('story-box-up').find('.tcontents_title a').css('color', 'black'); | |
}).on('click mousedown', function(){ | |
var permalink = $(this).find('.tcontents_title a').attr('href'); | |
window.location = permalink; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment