-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
121 lines (104 loc) · 3.45 KB
/
index.html
File metadata and controls
121 lines (104 loc) · 3.45 KB
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
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css">
<link rel="stylesheet" type="text/css" href="demo/style.css">
<style type="text/css">
.carousel-item-info {
left: 5%;
top: 5%;
}
.carousel-pagination-item.active { color: #fff; }
.carousel-item.animating {
display: block;
transition: all 0.3s ease-out;
}
.carousel-item.animating-left {
transform: translateX(100%);
-webkit-transform: translateX(100%);
}
.carousel-item.animating-left.animating-out {
transform: translateX(-100%);
-webkit-transform: translateX(-100%);
}
.carousel-item.animating-right {
transform: translateX(-100%);
-webkit-transform: translateX(-100%);
}
.carousel-item.animating-right.animating-out {
transform: translateX(100%);
-webkit-transform: translateX(100%);
}
.carousel-item.visible,
.carousel-item.visible.animating-left,
.carousel-item.visible.animating-right {
display: block;
transform: translateX(0);
-webkit-transform: translateX(0);
}
.button {
display: inline-block;
padding: 10px 20px;
margin-top: 10px;
color: #fff;
background: #333;
cursor: pointer;
-webkit-user-select: none;
user-select: none;
}
.button.disabled {
cursor: default;
opacity: .5;
}
</style>
</head>
<body>
<div id="main">
<section class="carousel">
<figure class="carousel-item">
<a class="carousel-item-image" href="#">
<img src="demo/images/one.png" alt="alt text" />
</a>
<figcaption class="carousel-item-info">
<h2>First Heading</h2>
<p>text</p>
<a class="button" href="#">button</a>
</figcaption>
</figure>
<figure class="carousel-item">
<a class="carousel-item-image" href="#">
<img src="demo/images/two.png" alt="alt text" />
</a>
<figcaption class="carousel-item-info">
<h2>Second Heading</h2>
<p>text</p>
<a class="button" href="#">button</a>
</figcaption>
</figure>
<figure class="carousel-item">
<a class="carousel-item-image" href="#">
<img src="demo/images/three.png" alt="alt text" />
</a>
<figcaption class="carousel-item-info">
<h2>Third Heading</h2>
<p>text</p>
<a class="button" href="#">button</a>
</figcaption>
</figure>
<div class="carousel-navigation">
<span class="carousel-navigation-item carousel-previous">←</span>
<span class="carousel-navigation-item carousel-next">→</span>
</div>
</section>
<a class="button button-play">Play</a>
<a class="button button-pause disabled">Pause</a>
<a class="button button-next">Next Slide</a>
<a class="button button-prev">Previous Slide</a>
</div>
<script type="text/javascript" src="jspm_packages/system.js"></script>
<script type="text/javascript" src="config.js"></script>
<script type="text/javascript">
System.import('demo/js/app')
</script>
</body>
</html>