-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathstyle.css
More file actions
43 lines (38 loc) · 803 Bytes
/
style.css
File metadata and controls
43 lines (38 loc) · 803 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
* {
box-sizing: border-box;
}
body {
background-color: rgb(247, 237, 155);
font-family: 'Courier New', Courier, monospace;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
overflow-x: hidden;
margin: 0;
}
h1 {
margin: 10px;
}
.box {
font-size: 30px;
font-style: bold italic;
background-color: rgb(105, 81, 241);
color: white;
width: 400px;
height: 200px;
display: flex;
align-items: center;
justify-content: center;
margin: 10px;
border-radius: 10px;
box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.5);
transform: translateX(400%);
transition: all 0.5s ease-in-out;
}
.box:nth-of-type(even) {
transform: translateX(-400%);
}
.box.active {
transform: translateX(0);
}