• Stars
    star
    165
  • Rank 228,906 (Top 5 %)
  • Language
    CSS
  • Created almost 10 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Off canvas menu inspired by Google's material design

Material Design Off Canvas Menu

This project was build using front end technologies, HTML5, CSS3, and JavaScript, to generate an off-canvas menu based on material design principles. It contains four main features:

  1. Animated toggle button
  2. Animated off canvas menu
  3. Animated Menu Items
  4. Touch/click ripple effect

View the live demo here

1 - Animated Toggle Button

The animated toggle button is a neat button created with pure CSS. It's a hamburger icon by default, and animates into an arrow (indicating a close button) when the menu is active/open.

2 - Animated Off Canvas Menu

The menu is initially hidden from view, and when the toggle switch is hit, it animates into view. It bumps the main content to the side, and also adds a mask over it. Clicking the mask or the toggle switch again closes the menu, animating it out of view.

3 - Animated Menu Items

While the menu slides into view, each item in the menu animates into view with a slight delay. This adds a little layer of neat animation to the menu.

4 - Touch/Click Ripple Effect

The touch/click ripple effect is an effect that creates a little animation, mimicking a ripple, expanding outwards from the point of contact with the user. This effect is mentioned and displayed quite a bit in the material design spec, and I replicated it with CSS and JavaScript.

Support

This project makes use of a few modern techniques:

  • Transitions, transforms, and animations
  • Transition events
  • The classList JavaScript method to add, remove, and check classes.

If you want full browser support, you're going to have to implement the necessary fallbacks and polyfills.

Tests

This project was tested in the following browsers:

  • Chrome 39
  • Safari 8
  • Firefox 34

Anyone else willing to run tests in other browsers, please let me know the results! Any issues, please file them accordingly.

License

Licensed under the MIT license, http://www.opensource.org/licenses/mit-license.php

Copyright 2014, Call Me Nick

http://callmenick.com

Live Demo

View the live demo here.

More Repositories

1

Animating-Hamburger-Icons

Animating CSS-only hamburger menu icons
CSS
488
star
2

Slide-Push-Menus

Slide and push menus with CSS3 transitions.
CSS
227
star
3

CSS-Circle-Menu

A fly-out circle menu built with CSS.
CSS
161
star
4

five-star-rating

Five star rating component
CSS
113
star
5

Custom-Context-Menu

Code and test application for creating a custom context menu.
JavaScript
81
star
6

CSS-Device-Mockups

Pure CSS device mockups.
CSS
80
star
7

responsive-tabs

Responsive tab layout with JavaScript and CSS.
CSS
69
star
8

Memory

A memory game.
JavaScript
68
star
9

Full-Screen-Background-Video

CSS
55
star
10

Draw-Fill-SVG

SVG plugin that draws and fills SVG paths
JavaScript
54
star
11

Slack-CSS-Logo

Slack animating logo built with only CSS
CSS
46
star
12

Flexbox-Examples

Some layout demos built with flexbox.
CSS
42
star
13

CSS-Presentation

My CSS presentation (demos included), that I gave at Hack Reactor
HTML
21
star
14

lifo-transitions

Last in, first out transitions
CSS
19
star
15

cooking-with-webpack

A webpack cookbook with guided tutorials
JavaScript
14
star
16

angular-js-introduction

CSS
8
star
17

css-loaders-spinners-2

More CSS Loaders & Spinners
CSS
7
star
18

Simple-Alert

A JavaScript component that displays alerts to the user.
CSS
3
star
19

shape-outside-demo

Demo of the CSS shape-outside property and syntax
CSS
3
star
20

svg-progress-wheels

Easily customizable SVG animating progress wheel components
CSS
1
star
21

short-videos-playground

A playground for demos seen on the short videos for SP
CSS
1
star
22

node-pretty-log

Logs things prettily to console in node apps.
JavaScript
1
star
23

d3-squiggly-line

Turns a line into a squiggle for visual enhancement!
CSS
1
star
24

Chatterbox-Backbone

Chatterbox built with parse and backbone
JavaScript
1
star
25

Development-Demos

Simple template for my development demos.
CSS
1
star
26

Backbone-Users-Directory

A users directory application with Backbone
JavaScript
1
star
27

Audio-Visualizer

CSS
1
star
28

Student-Solutions-Website

Student Solutions static website.
CSS
1
star
29

web-animation-api

CSS
1
star
30

references

A collection of awesome references
1
star