Skip to content

Instantly share code, notes, and snippets.

@rdallaire
Created December 20, 2012 00:17
Show Gist options
  • Save rdallaire/4341962 to your computer and use it in GitHub Desktop.
Save rdallaire/4341962 to your computer and use it in GitHub Desktop.
Quick Cart Drop Down Fixed
// Quick Cart
// TOGGLE CART TRAY FUNCTIONALITY
$('#top-info').on('click', '#cart-preview', function() {
if ($('#cart').hasClass('activated')) {
$('#cart').stop().removeClass('activated').slideUp('fast');
} else {
$('#cart').stop().addClass('activated').slideDown('fast');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment