-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle1.css
100 lines (100 loc) · 2 KB
/
style1.css
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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background-image: url('galaxy.jpg'); /* Thay nền thành galaxy.jpg */
background-size: cover;
background-repeat: no-repeat;
}
.card {
width: 640px;
height: 400px;
position: absolute;
margin: auto;
left: 0;
right: 0;
top: 0;
bottom: 0;
-webkit-perspective: 1200px;
perspective: 1200px;
transition: 1s;
}
.card:hover {
transform: rotate(-5deg);
}
.card:hover .outside {
transform: rotateY(-130deg);
}
.outside,
.inside {
height: 100%;
width: 50%;
position: absolute;
left: 50.1%;
}
.inside {
background: linear-gradient(to right,
#e7e7e7, #FFB6C1 30%);
line-height: 3;
padding: 0 20px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
left: 50%;
}
.outside {
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
z-index: 1;
transform-origin: left;
transition: 2s;
cursor: pointer;
}
.front,
.back {
height: 100%;
width: 100%;
position: absolute;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
transform: rotateX(0deg);
}
.front {
background-color: #ffb6c1;
}
.back {
transform: rotateY(180deg);
background: linear-gradient(to left,
#e7e7e7, #ffffff 30%);
}
.cake {
width: 100%;
position: absolute;
bottom: 30px;
background-image: url('kb1.jpg'); /* Thay bánh kem thành kb1.jpg */
background-size: contain;
background-repeat: no-repeat;
background-position: center;
height: 300px;
}
.middle-layer {
transform: scale(0.85);
top: 6px;
}
.top-layer {
transform: scale(0.7);
top: 26px;
}
.outside p {
font-size: 23px;
text-transform: uppercase;
margin-top: 30px;
text-align: center;
letter-spacing: 6px;
color: #000046;
}