forked from hakimel/Meny
/
index.html
77 lines (63 loc) · 3.15 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!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/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">►</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 — or swipe in from the left edge if you're on a touch device — 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>
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>
<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>
</body>
</html>