Pure CSS Sidebar Toggle Menu – Sidekick

Author: freshbrewedweb
Views Total: 12,645 views
Official Page: Go to website
Last Update: February 25, 2016
License: MIT


Pure CSS Sidebar Toggle Menu – Sidekick


Sidekick is a pure HTML / CSS based off-screen sidebar menu for your mobile site navigation. Click on the toggle menu you will see a sidebar navigation slides out from the left side of the screen while pushing the main page to the right.

Basic usage:

First you need to include the Sidekick.css in the header of your html page.

<link href="styles/sidekick.css" rel="stylesheet">

Create the menu toggle with a SVG based toggle icon as follows:

<input type="checkbox" id="sidekickToggle">
<label class="sidekick-toggle" for="sidekickToggle">
  <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
     width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
    <rect x="96" y="241" width="320" height="32"/>
    <rect x="96" y="145" width="320" height="32"/>
    <rect x="96" y="337" width="320" height="32"/>
  <span class="sr-only">Menu Toggle</span>

Insert the sidebar navigation together with main content into your html page.

<div class="sidekick">
  <nav class="sidekick-panel">
    <h1>Sidekick Menu</h1>
      <li><a href="#">Nav Item 1</a></li>
      <li><a href="#">Nav Item 2</a></li>
      <li><a href="#">Nav Item 3</a></li>
      <li><a href="#">Nav Item 4</a></li>
  <div class="sidekick-body">
    <h1>Sidekick Demo</h1>
    <h2>Documentation Will Go Here</h2>

See also  Pure CSS Off-canvas Bootstrap Navigation

Leave a Reply

Your email address will not be published. Required fields are marked *