-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
55 lines (50 loc) · 892 Bytes
/
style.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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body,html {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
background-color: #f0f0f0;
font-family: Arial, sans-serif;
text-align: center;
flex-direction: column;
padding: 20px;
overflow: hidden;
}
.container{
width: 200px;
animation: move 3s infinite linear;
}
.container img {
max-width: 100%;
height: auto;
width: 200px; /* Adjust this value as needed */
}
.container h1 {
color: #333;
margin-top: 20px;
font-size: 1.5em;
}
@media (max-width: 600px) {
.container h1 {
font-size: 1.2em;
}
.container img {
width: 150px; /* Adjust this value for smaller screens */
}
}
@keyframes move {
0%{
transform: translate(0, 40px);
}
50%{
transform: translate(0,-20px);
}
100%{
transform: translate(0,40px);
}
}