Last active
January 18, 2020 16:53
-
-
Save Prroffessorr/8cc1e3aff2b63145725acb7d6943a8e6 to your computer and use it in GitHub Desktop.
Path to the code jQuery and link on the icons site (for the fast include to the project)
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
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> $('.menu-btn').on('click',function(e){ | |
e.preventDefautl(); | |
$(this).toggleClass('menu-btn-active'); | |
$('.menu').toggleClass('.menu-active'); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment