-
Notifications
You must be signed in to change notification settings - Fork 315
/
index.html
77 lines (59 loc) · 3.05 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>Avgrund - A modal UI concept</title>
<meta name="description" content="A modal concept which aims to give a sense of depth between the page and modal layers">
<meta name="author" content="Hakim El Hattab">
<meta name="viewport" content="width=800, user-scalable=no">
<link href='https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/demo.css">
<link rel="stylesheet" href="css/avgrund.css">
<script>
function openDialog() {
Avgrund.show( "#default-popup" );
}
function closeDialog() {
Avgrund.hide();
}
</script>
</head>
<body>
<aside id="default-popup" class="avgrund-popup">
<h2>That's all, folks</h2>
<p>
You can hit ESC or click outside to close the modal. Give it a go to see the reverse transition.
</p>
<p>
If you like this you would probably enjoy <a href="http://lab.hakim.se/meny">Meny</a>, <a href="http://lab.hakim.se/reveal-js">reveal.js</a> and <a href="http://lab.hakim.se/scroll-effects">stroll.js</a>.
</p>
<button onclick="javascript:closeDialog();">Close</button>
</aside>
<article class="avgrund-contents">
<h1>Avgrund</h1>
<p>
A modal concept which aims to give a sense of depth between the page and modal layers. Click the button below to give it a try.
</p>
<button onclick="javascript:openDialog();">Open modal</button>
<p>
Uses CSS transforms to scale components and CSS filters to blur the page. Built for the fun of
it, not intended for any practical use.
</p>
<p>
<em>Avgrund</em> is Swedish for abyss.
</p>
<small>
Created by Hakim El Hattab<br>
<a href="https://twitter.com/hakimel">@hakimel</a> — <a href="http://hakim.se/">http://hakim.se</a>
</small>
<div class="sharing">
<a href="https://twitter.com/share" class="twitter-share-button" data-text="Avgrund - a depth-based modal concept from @hakimel" data-url="http://lab.hakim.se/avgrund" data-count="small" data-related="hakimel"></a>
<iframe id="facebook-button" src="https://www.facebook.com/plugins/like.php?href=http%3A%2F%2Flab.hakim.se%2Favgrund%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>
</article>
<div class="avgrund-cover"></div>
<script type="text/javascript" src="js/avgrund.js"></script>
<a class="fork-reveal" href="https://github.com/hakimel/avgrund"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://github-camo.global.ssl.fastly.net/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub"></a>
<script type="text/javascript" src="https://platform.twitter.com/widgets.js"></script>
</body>
</html>