Website in question: http://mtthwbsh.com
I am trying to create a resettable nav where, when switching, the arrow points up (and down when hiding).
I read about image rotation using jQuery and found this to be my best resource: Rotate OnClick image Using jQuery?
I understand what is happening here, but it's hard for me to imagine it with my markup. My jQuery for my crumbling navigator is as follows:
<script type="text/javascript"> $(document).ready(function(){ $("#menu-icon").on("click", function(){ $(".nav").slideToggle(); $(this).toggleClass("active"); }); }); </script>
I was wondering if anyone could explain how I can translate such functionality into my plugin?
source share