-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrick5.css
38 lines (37 loc) · 836 Bytes
/
trick5.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
body{
display: flex;
justify-content: center;
height: 80vh;
margin: 0;
align-items: center;
background-color: slateblue;
}
.div {
border: 1px solid #ffff;
width: 50%;
height: 50%;
text-align: center;
color: #ffff;
animation: change 5s infinite alternate; /* Adjust animation duration and use alternate direction */
border-radius: 20px; /* Rounded corners */
box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* Add a subtle shadow */
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
font-weight: 900;
}
@keyframes change {
0% {
background-color: cadetblue;
}
25% {
background-color: brown;
}
50% {
background-color: crimson;
}
75% {
background-color: darkgreen;
}
100% {
background-color: violet;
}
}