Collection of HTML and CSS Off-Canvas Menu Code Examples

Browse a collection of HTML and CSS off-canvas menu code examples to create stylish, hidden navigation menus that slide in from the side of your website.

Pure CSS Off Canvas Menu

Author:
Saief Al Emon | July 2, 2020
Made with:
HTML / CSS (SCSS)

About a code

It quite simple to make a offcanvas menu, no JavaScript is needed.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
font-awesome.css

Off-Canvas Menu

Author:
Andrej Sharapov | March 22, 2019
Made with:
HTML (Pug) / CSS (SCSS)

About a code

Pure CSS off-canvas menu.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-
Off-Canvas Menu

Off-Canvas Menu

Author:
Envato Tuts+ | January 22, 2018
Made with:
HTML / CSS / JavaScript (Babel)

About a code

Off-canvas menu with CSS and a touch of JavaScript.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-
Hidden Side Menu

Hidden Side Menu

Author:
Joshua Ward | June 29, 2017
Made with:
HTML / CSS (SCSS)

About a code

Hidden side menu and hamburger animation using CSS only.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-
Pure CSS Slide Out Menu

Pure CSS Slide Out Menu

Author:
James Zedd | May 23, 2017
Made with:
HTML / CSS

About a code

A slide out menu that does not require JS to function properly - all handled by CSS and 100% functional.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
font-awesome.css

Pure CSS Off-Canvas Menu

Author:
Franck | December 19, 2016
Made with:
HTML / CSS (SCSS)

About a code

This example is a pure css off canvas menu demonstration made with CSS only. Not a single drop JavaScript.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
font-awesome.css

Off-Canvas Menu

Author:
Mojtaba Seyedi | June 12, 2015
Made with:
HTML / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
font-awesome.css
Off Canvas Nav

Off Canvas Nav

Author:
Tyler Fowle | April 9, 2015
Made with:
HTML/HamlCSS/SCSSJavaScript (jquery.js)

About a code

Sass off-canvas navigation.

Material Design Navigation

Author:
Lewi Hussey | October 30, 2014
Made with:
HTML / CSS (Less) / JS

About a code

The page slides to reveal a clean, simple navigation.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
jquery.js
Sliding Panels and Off Canvas Navigation

Sliding Panels and Off Canvas Navigation

Author:
Adam Carignan | October 29, 2014
Made with:
HTML / CSS (SCSS)

About a code

Pure CSS3 HTML5 sliding panels and off canvas navigation.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-
Pure CSS Off-Canvas Menu with Flexbox

Pure CSS Off-Canvas Menu with Flexbox

Author:
Zoe Gillenwater | October 1, 2014
Made with:
HTML / CSS (SCSS)

About a code

Flexbox allows the content area to resize to fit the remaining space in the viewport when the menu becomes visible and takes up a chunk of the width.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-
Pure CSS Off-Screen Menu

Pure CSS Off-Screen Menu

Author:
SitePoint | July 31, 2014
Made with:
HTML / CSS

About a code

This concept relies on the :checked pseudo-selector as well as the general sibling ~ selector, so it has decent browser support.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-
Pure CSS Transition Effects For Off-Canvas Views

Pure CSS Transition Effects For Off-Canvas Views

Author:
Thomas Wilthil | July 3, 2014
Made with:
HTMLCSS

About a code

You have probably all seen the "drawer menu/off-canvas" navigation style made popular by Facebook a few years back. There are a lot of great javascript plugins that offers this functionality, but I thought it would be cool to try and do this with the new cool features of css. No javascript required. - Thomas Wilthil

Off Canvas Menu Effect: Delayed Flip Out

Author:
Michael Fangman | January 24, 2014
Made with:
HTML / CSS (SCSS)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-
iOS Style Sliding Menu

iOS Style Sliding Menu

Author:
Jason Howmans | July 12, 2013
Made with:
HTML / CSS (SCSS) / JavaScript

About a code

Here's an easy way to create an iOS style, side sliding menu.

Compatible browsers:
Chrome, Firefox, Opera, Safari
Dependencies:
-
CSS3 Off-Canvas Panel with Menu

CSS3 Off-Canvas Panel with Menu

Author:
Darren Huskie | June 20, 2013
Made with:
HTML / CSS / JavaScript

About a code

A CSS3 off-canvas panel with menu and associated content which transitions in from the right hand side of the page. The whole body of the page moves left to create this effect.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-

Discover Our Extensive Snippet Library

This heading suggests that your website provides a wide variety of snippets across different technologies, encouraging users to explore and use these resources for their development projects.

HTML Snippets.

Explore a collection of HTML snippets designed to streamline your web development process. From basic structures to complex elements.

CSS Snippets.

Discover powerful CSS snippets that help you style your web pages with ease. Whether you need layout solutions, animations

JavaScript Snippets.

Enhance your website's interactivity with our JavaScript snippets. From DOM manipulation to advanced algorithms

Bootstrap Snippets.

Leverage the power of Bootstrap with our collection of snippets. Quickly integrate responsive design components

Tailwind Snippets.

Speed up your development process with Tailwind CSS snippets. These utility-first CSS snippets enable you to

jQuery Snippets.

Simplify your JavaScript development with jQuery snippets. Easily perform common tasks like event handling, animations

React Snippets.

Build robust, component-based user interfaces with our React snippets. From state management to lifecycle methods,

Vue Snippets.

Streamline Vue.js development with our collection of snippets for creating components, managing state, and handling events.

Ready to set your Brand ablaze?

Let's craft a visual identity that ignites passion and loyalty. ✨