-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
93 lines (81 loc) · 1.8 KB
/
index.html
File metadata and controls
93 lines (81 loc) · 1.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<style>
.flip-card {
background-color: transparent;
width: 320px;
height: 520px;
perspective: 1000px;
}
.flip-card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.8s;
transform-style: preserve-3d;
}
.flip-card-front,
.flip-card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
}
.flip-card-front {
background-color: #bbb;
color: black;
}
.flip-card-back {
background-color: #000;
color: white;
}
.flipX .flip-card-back {
transform: rotateX(180deg);
}
.flip-card:hover .flipX {
transform: rotateX(180deg);
}
.flipY .flip-card-back {
transform: rotateY(180deg);
}
.flip-card:hover .flipY {
transform: rotateY(180deg);
}
</style>
</head>
<body>
<div class="container py-5">
<div class="row">
<div class="col-4">
<div class="flip-card">
<div class="flip-card-inner flipX">
<div class="flip-card-front">
<h2>Front flipX</h2>
</div>
<div class="flip-card-back">
<h1>Back flipX</h1>
</div>
</div>
</div>
</div>
<div class="col-4">
<div class="flip-card">
<div class="flip-card-inner flipY">
<div class="flip-card-front">
<h2>Front flipY</h2>
</div>
<div class="flip-card-back">
<h1>Back flipY</h1>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>