Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

100 lines (82 sloc) 4.53 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Meny - CSS 3D fold-in menu concept</title>
<meta name="description" content="A three dimensional and space efficient menu concept created with JavaScript and CSS 3.">
<meta name="author" content="Hakim El Hattab">
<meta name="viewport" content="width=800, user-scalable=no">
<link href='http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/meny.css">
</head>
<body>
<!-- Menu element that rolls in from the left -->
<div class="meny">
<h2>More Experiments</h2>
<ul>
<li><a href="http://lab.hakim.se/avgrund/">Avgrund</a></li>
<li><a href="http://lab.hakim.se/radar/">Radar</a></li>
<li><a href="http://lab.hakim.se/forkit-js/">forkit.js</a></li>
<li><a href="http://lab.hakim.se/scroll-effects/">stroll.js</a></li>
<li><a href="http://lab.hakim.se/zoom-js">zoom.js</a></li>
<li><a href="http://lab.hakim.se/reveal-js">reveal.js</a></li>
<li><a href="http://itunes.apple.com/us/app/sinuous/id543097218">Sinuous for iOS</a></li>
<li><a href="http://hakim.se/experiments/css/domtree/">DOM Tree</a></li>
<li><a href="http://hakim.se/experiments/css/holobox/">Holobox</a></li>
<li><a href="http://hakim.se/experiments/html5/404/netmag.html">404</a></li>
</ul>
</div>
<!-- Arrow that appears from the left when menu is collapsed -->
<div class="meny-arrow">&#x25BA;</div>
<!-- Contents that will be rotated when the meny is expanded -->
<div class="meny-contents">
<div class="cover"></div>
<article>
<h1>Meny</h1>
<p>
A three dimensional and space efficient menu concept.</p>
<p>
Move your mouse to the left edge of this page &mdash; or swipe in from the left edge if you're on a touch device &mdash; to expand the menu.
Pass in a URL to test it with any page, like so: <a href="http://lab.hakim.se/meny/?http://hakim.se">lab.hakim.se/meny/?http://hakim.se.</a>
</p>
<p>
There's a special folding variant of the transition. <a href="#fold">Activate the #fold</a> or <a href="#">reset</a>.
</p>
<p>
CSS 3D transforms are used for the transition effect and JavaScript is used to track mouse/touch movement.
</p>
<p>
The name, <em>Meny</em>, is swedish.
</p>
<small>
Created by <a href="http://twitter.com/hakimel">@hakimel</a> / <a href="http://hakim.se/">http://hakim.se</a>
</small>
</article>
<div class="sharing">
<a href="http://twitter.com/share" class="twitter-share-button" data-text="Meny - a three dimensional fold-in menu concept by @hakimel" data-url="http://lab.hakim.se/meny" data-count="small" data-related="hakimel"></a>
<iframe id="facebook-button" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Flab.hakim.se%2Fmeny%2F&layout=button_count&show_faces=false&width=83&action=like&font=arial&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:85px; height:24px; position: relative; top: 4px;" allowTransparency="true"></iframe>
</div>
<a class="fork-reveal" href="https://github.com/hakimel/meny"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://a248.e.akamai.net/camo.github.com/e6bef7a091f5f3138b8cd40bc3e114258dd68ddf/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub"></a>
</div>
<script src="js/meny.js"></script>
<script>
// Embed an iframe if a URL is passed in
if( window.location.search.length && window.location.search.match( /^\?(http|www)/gi ) ) {
var contents = document.querySelector( '.meny-contents' );
contents.style.padding = '0px';
contents.innerHTML = '<div class="cover"></div><iframe src="'+ window.location.search.slice( 1 ) +'" style="width: 100%; height: 100%; border: 0; position: absolute;"></iframe>';
}
</script>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<script>
var _gaq = [['_setAccount', 'UA-15240703-1'], ['_trackPageview']];
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.async = true;
g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
})(document, 'script');
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.