Created
July 30, 2014 14:53
-
-
Save jpcontrerasv/1c9e7ff508e75466837c to your computer and use it in GitHub Desktop.
Seleccionar sólo el hijo que tiene las mismas clases repetidas
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
$(".btn-funciona").click(function(event){ | |
$(this).parent().next(".cover").animate({right:'0'}, 800).addClass("cover-abierto"); | |
}); | |
$(".cerrar-cover").click(function(event){ | |
$(this).closest(".cover").animate({right:'-75%'}, 800).removeClass("cover-abierto"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment