Skip to content

Instantly share code, notes, and snippets.

@Ondreas
Created September 19, 2013 13:17
Show Gist options
  • Save Ondreas/6623345 to your computer and use it in GitHub Desktop.
Save Ondreas/6623345 to your computer and use it in GitHub Desktop.
Three Line Menu 'Navicon' CSS3 Gradient
<html>
<head>
<title>Three Line Menu 'Navicon' with CSS3 Box-Shadow</title>
<!-- http://css-tricks.com/three-line-menu-navicon/ -->
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<style type="text/css">
.gradient-menu {
padding-left: 1.25em;
position: relative;
}
.gradient-menu:before {
content: "";
position: absolute;
left: 0;
top: 0.21em;
bottom: 0.21em;
width: 1em;
background: linear-gradient(
top,
black, black 20%,
white 20%, white 40%,
black 40%, black 60%,
white 60%, white 80%,
black 80%, black 100%
);
}
</style>
</head>
<body>
<a href="#menu" class="gradient-menu">Menu</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment