-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.css
More file actions
50 lines (44 loc) · 724 Bytes
/
Copy pathtest.css
File metadata and controls
50 lines (44 loc) · 724 Bytes
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
body {
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: #fff;
}
.container {
position: relative;
width: 600px;
height: 400px;
cursor: pointer;
}
.doge {
position: absolute;
width: 200px;
bottom: 20px;
}
.big {
left: 50px;
}
.small {
right: 50px;
}
#bat {
position: absolute;
width: 160px;
top: 100px;
left: calc(50% + 40px); /* gần tay Big Doge */
transform-origin: left center;
transform: rotate(-45deg);
transition: transform 0.1s ease-out;
}
#bonk-text {
position: absolute;
top: 30px;
left: 50%;
transform: translateX(-50%);
font-size: 64px;
color: red;
opacity: 0;
transition: opacity 0.1s ease-in;
}