Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
116 lines (92 sloc) 4.71 KB
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>Meny - A three dimensional and space efficient menu concept</title>
<meta name="description" content="A three dimensional and space efficient menu created with JavaScript and CSS 3.">
<meta name="author" content="Hakim El Hattab">
<meta name="viewport" content="width=800, user-scalable=no">
<link href=',700,400italic,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/demo.css">
<div class="meny">
<h2>More Experiments</h2>
<li><a href="">Avgrund</a></li>
<li><a href="">Radar</a></li>
<li><a href="">forkit.js</a></li>
<li><a href="">stroll.js</a></li>
<li><a href="">zoom.js</a></li>
<li><a href="">reveal.js</a></li>
<li><a href="">Sinuous for iOS</a></li>
<li><a href="">DOM Tree</a></li>
<li><a href="">Holobox</a></li>
<li><a href="">404</a></li>
<div class="meny-arrow"></div>
<div class="contents">
A three dimensional and space efficient menu.
Move your mouse towards the arrow &mdash; or swipe in from the arrow if you're on a touch device &mdash; to open.
Test it with any page by appending a URL, like so: <a href=""></a>
Meny can be positioned on any side of the screen: <br>
<a href="">top</a>
- <a href="">right</a>
- <a href="">bottom</a>
- <a href="">left</a>
Instructions and download at <a href=""></a>.
The name, <em>Meny</em>, is swedish.
Created by <a href="">@hakimel</a> / <a href=""></a>
<div class="sharing">
<a href="" class="twitter-share-button" data-text="Meny - a three dimensional and space efficient menu concept by @hakimel" data-url="" data-count="small" data-related="hakimel"></a>
<iframe id="facebook-button" src="" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:85px; height:24px; position: relative; top: 4px;" allowTransparency="true"></iframe>
<a href=""><img style="position: absolute; top: 0; right: 0; border: 0;" src="" alt="Fork me on GitHub"></a>
<script src="js/meny.min.js"></script>
// Create an instance of Meny
var meny = Meny.create({
// The element that will be animated in from off screen
menuElement: document.querySelector( '.meny' ),
// The contents that gets pushed aside while Meny is active
contentsElement: document.querySelector( '.contents' ),
// [optional] The alignment of the menu (top/right/bottom/left)
position: Meny.getQuery().p || 'left',
// [optional] The height of the menu (when using top/bottom position)
height: 200,
// [optional] The width of the menu (when using left/right position)
width: 260,
// [optional] Distance from mouse (in pixels) when menu should open
threshold: 40
// API Methods:
// meny.close();
// meny.isOpen();
// Embed an iframe if a URL is passed in
if( Meny.getQuery().u && Meny.getQuery().u.match( /^http/gi ) ) {
var contents = document.querySelector( '.contents' ); = '0px';
contents.innerHTML = '<div class="cover"></div><iframe src="'+ Meny.getQuery().u +'" style="width: 100%; height: 100%; border: 0; position: absolute;"></iframe>';
<script type="text/javascript" src=""></script>