Slidey Drawer

A dead-simple slide-in navigation drawer for websites, built using CSS and triggered using Javascript.

Demo

Features

Usage

  1. Include the CSS in head
<link rel="stylesheet" href="Slidey.css">
  1. Include Javascript
<script src="Slidey.js"></script>
  1. Put this markup anywhere on the page
<nav id="slidey" class="slidey--left slidey--styled">
    <a href="#" class="slidey__brand">Brand Name</a> <!-- Optional -->
    <a href="#">Menu Item 1</a>
    <a href="#">Menu Item 2</a>
    <a href="#">Menu Item 3</a>
    <a href="#">Menu Item 4</a>
    <a href="#">Menu Item 5</a>

    <div id="slidey__toggle"></div> <!-- Optional -->
    <div id="slidey__close"></div> <!-- Optional -->
</nav>

How to use the CSS classes

Mandatory Styling

Optional Styling

Dependencies

Compatibility