Created
January 12, 2017 22:28
-
-
Save adhoch/9eb16ccf81809547ee1f89a36a751ddc to your computer and use it in GitHub Desktop.
stupid accordion
This file contains 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
function accordionToggle(){ | |
$(this).parent().parent().find('.rotateIcon').removeClass('rotateIcon'); | |
$('.accordion-description').not($(this).next()).slideUp(); | |
$(this).next().slideToggle(1000); | |
$(this).find('.ico-icon-arrowDown').toggleClass('rotateIcon'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment