-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
63 lines (40 loc) · 726 Bytes
/
Copy pathstyle.css
File metadata and controls
63 lines (40 loc) · 726 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
* {
box-sizing: border-box;
}
body {
background-color: blueviolet;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0;
overflow-x: hidden
;
}
h1 {
margin: 10px;
color: crimson;
}
.box {
background-color: cornflowerblue;
color: aliceblue;
display: flex;
align-items: center;
justify-content: center;
margin: 10px;
height: 200px;
width: 50vw;
border-radius: 4px;
border: 0;
transform: translateX(200%);
transition: transform 0.5s ease;
}
.box:nth-last-of-type(even) {
transform: translateX(-200%);
}
.box.show {
transform:translateX(0) ;
}
.h2 {
font-size: 35px;
}