forked from mbostock/stack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.html
110 lines (80 loc) · 2.15 KB
/
example.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<meta charset="utf-8">
<style>
@import url(stack.css);
</style>
<body class="overview">
<section>
<h1><a href="https://github.com/mbostock/stack">stack.js</a></h1>
<p>A presentation library with intuitive, scroll-based navigation.
<p style="position:absolute;bottom:0;">Built with <a href="http://mbostock.github.com/d3/">d3.js</a>.
</section>
<section>
<h1>Crossfades</h1>
<p>Sneak a peek at the next slide by scrolling down and back.
</section>
<section>
<h1 style="position:absolute;bottom:0;">PEEK-A-BO! I see you!</h1>
</section>
<section style="background:url(beach.jpg);margin-left:128px;width:944px;">
<h1 style="position:absolute;bottom:0;color:white;">Variable-width Slides</h1>
</section>
<section>
<h1>Scroll-Happy</h1>
<p>Scroll many slides at once with a flick of the wrist.
<br>Or, grab the scrollbar on the slide and jump around.
</section>
<section class="big">
<h1>9</h1>
</section>
<section class="big">
<h1>8</h1>
</section>
<section class="big">
<h1>7</h1>
</section>
<section class="big">
<h1>6</h1>
</section>
<section class="big">
<h1>5</h1>
</section>
<section class="big">
<h1>4</h1>
</section>
<section class="big">
<h1>3</h1>
</section>
<section class="big">
<h1>2</h1>
</section>
<section class="big">
<h1>1</h1>
</section>
<section>
<h1>Snap-to Scrolling</h1>
<p>If you stop between slides, the stack will drift to the closest slide.
</section>
<section>
<h1>Edge Detection</h1>
<p>If you scroll up, the previous slide is immediately visible.
<br>If you scroll down, the next slide is immediately visible.
<p>(This would be more robust if WebKit supported touch events!)
</section>
<section>
<h1>Keyboard Shortcuts</h1>
<p>up / down / left / right
<br>page up / page down
<br>home / end
<br>space / shift-space
<p>Press up or down multiple times, and it does the right thing!
</section>
<section>
<h1>More Features! [to-do]</h1>
<p>Zoom-out overview?
<br>Anchor fragments.
<br>Auto-loading iframes for resource-expensive slides.
<br>iOS & non-WebKit browser testing.
</section>
<script src="d3.v2.js?2.7.3"></script>
<script src="stack.v0.js"></script>