Created
July 9, 2014 21:25
-
-
Save ArunGupta25/c4c8d3cfa3b268077b78 to your computer and use it in GitHub Desktop.
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
$('.deslinks').hover( function() { | |
$('.deslinks').addClass('popout'); | |
$('.deslinks.popout').animate({height:495},300) | |
$('.deslinksbehind').show(); | |
}, function() { | |
$('.deslinksbehind').hide(); | |
$('.deslinks.popout').animate({height:155},300, function() { | |
$('.deslinks').removeClass('popout'); | |
}) | |
} | |
); | |
$('.sizelinks').hover( function() { | |
if ($('.sizelinks')[0].scrollHeight > 155) { | |
$('.sizelinks').addClass('popout'); | |
$('.sizelinks.popout').animate({height:$('.sizelinks')[0].scrollHeight},300,function() { | |
$('.sizelinks.popout').css("border-bottom", "2px solid white"); | |
}) | |
} | |
}, function() { | |
$('.sizelinks.popout').css("border-bottom", "0px solid white"); | |
$('.sizelinks.popout').animate({height:155},300, function() { | |
$('.sizelinks.popout').css("border-bottom", "0px solid white"); | |
$('.sizelinks').removeClass('popout'); | |
}) | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment