Created
March 13, 2017 10:46
-
-
Save muthu32/926b615a68f6f6a9ae53d385d5f51b06 to your computer and use it in GitHub Desktop.
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
<a href="#0" class="cd-nav-trigger"><span></span></a> | |
<style> | |
.cd-nav-trigger span, .cd-nav-trigger span::before, .cd-nav-trigger span::after { | |
/* hamburger icon in CSS */ | |
position: absolute; | |
height: 3px; | |
width: 24px; | |
background: #ffffff; | |
} | |
.cd-nav-trigger span::before { | |
/* menu icon top line */ | |
top: -6px; | |
} | |
.cd-nav-trigger span::after { | |
/* menu icon bottom line */ | |
top: 6px; | |
} | |
.cd-nav-trigger span::before, .cd-nav-trigger span::after { | |
/* other 2 lines */ | |
content: ''; | |
right: 0; | |
} | |
.cd-nav-trigger | |
{ | |
position: fixed; | |
height: 40px; | |
width: 40px; | |
background: #3e454c; | |
} | |
.cd-nav-trigger span { | |
/* line in the center */ | |
top: 50%; | |
left: 5px; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment