-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdesign5.html
More file actions
162 lines (154 loc) · 5.42 KB
/
design5.html
File metadata and controls
162 lines (154 loc) · 5.42 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="swiper.min.css">
<style>
body{
margin:0;
padding:0;
display:flex;
justify-content: center;
align-items:center;
min-height: 100vh;
background: #383838;
font-family: sans-serif;
}
.card{
position:relative;
background:#fff;
width:400px;
height:500px;
margin:0 auto;
}
.card .content{
width:400px;
padding:30px;
box-sizing:border-box;
}
.card .content a{
display:inline-block;
margin:10px 0 0;
padding:10px 20px;
text-decoration:none;
border:2px solid #262626;
color:#262626;
font-weight:600;
}
.card .sliderText{
position:relative;
width:100%;
height:200px;
display:flex;
justify-content: center;
align-items: center;
background:#000;
}
.card .sliderText h3{
color:#fff;
font-size:3em;
}
.swiper-slide{
width:400px;
}
.swiper-slide:nth-child(1) .sliderText{
background:#2196f3;
}
.swiper-slide:nth-child(2) .sliderText{
background:#e91e63;
}
.swiper-slide:nth-child(3) .sliderText{
background:#c3d41a;
}
.swiper-slide:nth-child(4) .sliderText{
background:#c33ada;
}
.swiper-slide:nth-child(5) .sliderText{
background:#219653;
}
</style>
</head>
<body>
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="card">
<div class="sliderText">
<h3>Slide One</h3>
</div>
<div class="content">
<p>Sakura Haruno is the important charactor in the anime named Naruto.She is best friend of Naruto.She loves Sasuke by the bottom of her heart.She is hard-working and student of one of the sanin.She is very pretty ans smart.</p>
<a href="#">Read More</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="card">
<div class="sliderText">
<h3>Slide Two</h3>
</div>
<div class="content">
<p>Sakura Haruno is the important charactor in the anime named Naruto.She is best friend of Naruto.She loves Sasuke by the bottom of her heart.She is hard-working and student of one of the sanin.She is very pretty ans smart.</p>
<a href="#">Read More</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="card">
<div class="sliderText">
<h3>Slide Three</h3>
</div>
<div class="content">
<p>Sakura Haruno is the important charactor in the anime named Naruto.She is best friend of Naruto.She loves Sasuke by the bottom of her heart.She is hard-working and student of one of the sanin.She is very pretty ans smart.</p>
<a href="#">Read More</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="card">
<div class="sliderText">
<h3>Slide Four</h3>
</div>
<div class="content">
<p>Sakura Haruno is the important charactor in the anime named Naruto.She is best friend of Naruto.She loves Sasuke by the bottom of her heart.She is hard-working and student of one of the sanin.She is very pretty ans smart.</p>
<a href="#">Read More</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="card">
<div class="sliderText">
<h3>Slide Five</h3>
</div>
<div class="content">
<p>Sakura Haruno is the important charactor in the anime named Naruto.She is best friend of Naruto.She loves Sasuke by the bottom of her heart.She is hard-working and student of one of the sanin.She is very pretty ans smart.</p>
<a href="#">Read More</a>
</div>
</div>
</div>
</div>
</div>
<script src="swiper.min.js"></script>
<script>
var swiper = new Swiper('.swiper-container', {
effect: 'coverflow',
grabCursor: true,
centeredSlides: true,
slidesPerView: 'auto',
coverflowEffect: {
rotate: 30,
stretch: 0,
depth: 200,
modifier: 1,
slideShadows : true,
},
pagination: {
el: '.swiper-pagination',
},
});
</script>
</body>
</html>