Skip to content

Commit 821cf54

Browse files
committed
impressive navigation hint added
1 parent 3456818 commit 821cf54

File tree

2 files changed

+55
-2
lines changed

2 files changed

+55
-2
lines changed

css/style.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ table {
6060

6161

6262
body {
63+
font-family: 'PT Sans', sans-serif;
64+
6365
min-height: 740px;
6466

6567
background: rgb(215, 215, 215);
@@ -129,6 +131,54 @@ a:hover {
129131

130132
/* STEP SPECIFIC STYLES */
131133

134+
/* hint on the first slide */
135+
136+
.hint {
137+
position: fixed;
138+
left: 0;
139+
right: 0;
140+
bottom: 200px;
141+
142+
background: rgba(0,0,0,0.5);
143+
color: #EEE;
144+
text-align: center;
145+
146+
font-size: 50px;
147+
padding: 20px;
148+
149+
z-index: 100;
150+
151+
opacity: 0;
152+
153+
-webkit-transform: translateY(400px);
154+
-moz-transform: translateY(400px);
155+
-ms-transform: translateY(400px);
156+
-o-transform: translateY(400px);
157+
transform: translateY(400px);
158+
159+
-webkit-transition: opacity 1s, -webkit-transform 0.5s 1s;
160+
-moz-transition: opacity 1s, -moz-transform 0.5s 1s;
161+
-ms-transition: opacity 1s, -ms-transform 0.5s 1s;
162+
-o-transition: opacity 1s, -o-transform 0.5s 1s;
163+
transition: opacity 1s, transform 0.5s 1s;
164+
}
165+
166+
.step-bored + .hint {
167+
opacity: 1;
168+
169+
-webkit-transition: opacity 1s 5s, -webkit-transform 0.5s;
170+
-moz-transition: opacity 1s 5s, -moz-transform 0.5s;
171+
-ms-transition: opacity 1s 5s, -ms-transform 0.5s;
172+
-o-transition: opacity 1s 5s, -o-transform 0.5s;
173+
transition: opacity 1s 5s, transform 0.5s;
174+
175+
-webkit-transform: translateY(0px);
176+
-moz-transform: translateY(0px);
177+
-ms-transform: translateY(0px);
178+
-o-transform: translateY(0px);
179+
transform: translateY(0px);
180+
}
181+
132182
/* impress.js title */
133183

134184
#title {

index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@
1313
</head>
1414
<body>
1515

16-
1716
<div id="impress" class="impress-not-supported">
1817

1918
<div class="fallback-message">
2019
<p>Your browser <b>doesn't support the features required</b> by impress.js, so you are presented with a simplified version of this presentation.</p>
2120
<p>For the best experience please use the latest <b>Chrome</b> or <b>Safari</b> browser. Firefox 10 and Internet Explorer 10 <i>should</i> also handle it.</p>
2221
</div>
2322

24-
<div class="step slide" data-x="-1000" data-y="-1500">
23+
<div id="bored" class="step slide" data-x="-1000" data-y="-1500">
2524
<q>Aren't you just <b>bored</b> with all those slides-based presentations?</q>
2625
</div>
2726

@@ -80,6 +79,10 @@ <h1>impress.js<sup>*</sup></h1>
8079

8180
</div>
8281

82+
<div class="hint">
83+
<p>Use a spacebar or arrow keys to navigate</p>
84+
</div>
85+
8386
<script src="js/impress.js"></script>
8487

8588
</body>

0 commit comments

Comments
 (0)