Created
November 19, 2017 18:17
-
-
Save alaingoldman/8e16ab09a090ab270d1678bb361e1769 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
var opened = false; | |
$('.r1').click(function(){ | |
if(opened == false){ | |
$('.hid1').animate({height: "200px"}); | |
opened = true; | |
}else{ | |
$('.hid1').animate({height: "0px"}).animate({height: "200px"}); | |
opened = false; | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment