-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
70 lines (63 loc) · 1.22 KB
/
styles.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
body {
background-color: #333;
color: #fff;
font-family: 'Arial', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.bridge-keeper-container {
position: relative;
text-align: center;
}
.bridge-keeper {
position: relative;
display: inline-block;
animation: float 3s ease-in-out infinite;
}
.bridge-keeper-image {
width: 200px;
border: 2px solid #fff;
border-radius: 10px;
}
.speech-bubble {
position: absolute;
top: -50px;
left: 50%;
transform: translateX(-50%);
background-color: #222;
border: 2px solid #fff;
border-radius: 10px;
padding: 10px;
width: 300px;
text-align: center;
animation: fadeIn 1s ease-in-out;
}
.speech-bubble::after {
content: '';
position: absolute;
bottom: -20px;
left: 50%;
transform: translateX(-50%);
border-width: 10px;
border-style: solid;
border-color: #222 transparent transparent transparent;
}
@keyframes float {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
}
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}