Looking for help to transform a simple stick nav into a sliding menu that collapses into an icon like those found on website templates. I've been researching online but haven't found the right solution yet. Any suggestions would be appreciated!
Something similar to this quick Photoshop sketch: https://i.sstatic.net/iiTnk.jpg
You can view the code and test it out here: JSfiddle
Code snippet:
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Untitled Document</title>
<style type="text/css">
#menu {
position: fixed;
left: 0;
top: 50%;
width: 8em;
margin: -2.5em 0 0 0;
z-index: 5;
background: white;
color: #4E4E4E;
font-weight: bold;
font-size: large;
text-align: left;
border: #4e4e4e;
border-left: none;
padding: 0.5em 0.5em 0.5em 2.5em;
box-shadow: 0 1px 3px black;
}
#menu li { margin: 0 }
#menu a { color: inherit }
</style>
</head>
<body>
<ul id=menu>
<li><a href="#L384">Section 1</a>
<li><a href="#details">Section 2</a>
<li><a href="#FAQ">Section 3</a>
</ul>
</body>
</html>