Skip to content

Instantly share code, notes, and snippets.

@ArunGupta25
Created July 9, 2014 21:25
Show Gist options
  • Save ArunGupta25/c4c8d3cfa3b268077b78 to your computer and use it in GitHub Desktop.
Save ArunGupta25/c4c8d3cfa3b268077b78 to your computer and use it in GitHub Desktop.
$('.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