-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbook.html
More file actions
131 lines (111 loc) · 2.64 KB
/
Copy pathbook.html
File metadata and controls
131 lines (111 loc) · 2.64 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
font-style: italic;
}
body {
background-color:purple;
}
.card {
width: 640px;
height: 400px;
position: absolute;
margin: auto;
left: 0;
right: 0;
top: 0;
bottom: 0;
-webkit-perspective: 1200px;
perspective: 1200px;
transition: 1s;
background-color: red;
}
.card:hover {
/* transform: rotate(-5deg); */
}
.outside{
height: 100%;
width: 50%;
position: absolute;
left: 50.1%;
transform-style: preserve-3d;
z-index: 2;
transform-origin: left;
transition: 2s;
cursor: pointer;
}
.card:hover .outside {
transform: rotateY(-180deg);
}
.front,
.back {
height: 100%;
width: 100%;
position: absolute;
/* -webkit-backface-visibility: hidden; */
backface-visibility: hidden;
transform: rotateX(0deg);
}
.front {
background-color: cyan;
}
.back {
transform: rotateY(180deg);
background: linear-gradient(to left, cyan,blue 30%);
}
/* Second Page Css */
.inside {
/* background: linear-gradient(to right, blue,blue, 30%); */
height: 100%;
width: 50%;
position: absolute;
left: 50.1%;
line-height: 3;
padding: 0 20px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
left: 50%;
background-color: deeppink;
border: 10px solid black;
transform-style: preserve-3d;
z-index: 1;
transform-origin: left;
transition: 2s;
cursor: pointer;
}
.inside:hover{
transform: rotateY(-180deg);
}
</style>
</head>
<body>
<div class="card">
<!-- first Page Css -->
<div class="outside">
<div class="front">
<div class="cake">
<img src="images/1723562679119.png" style="width: 100%;height: 100%;background-size: cover;object-fit: cover;"/>
</div>
</div>
<div class="back"></div>
</div>
<!-- second Page -->
<div class="inside">
<p>Wishing you a very happy teacher day filled with love and laughter and your blessing always remain ❤️ </p>
<h1>🎁</h1>
</div>
</div>
</body>
</html>