-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
42 lines (37 loc) · 668 Bytes
/
style.css
File metadata and controls
42 lines (37 loc) · 668 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
* {
box-sizing: border-box;
margin: 0;
}
body {
background-color: #ddd;
height: 100vh;
}
.main {
display: flex;
align-items: center;
background-color: #fff;
justify-content: center;
width: calc(100% - 40px);
height: calc(100vh - 40px);
position: absolute;
overflow: hidden;
margin: 20px;
}
.square {
width: 50vw;
height: calc(100vh - 40px);
position: absolute;
background-color: rebeccapurple;
}
.circle {
width: 100px;
height: 100px;
border-radius: 50%;
background-color: pink;
position: absolute;
box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, .2);
z-index: 10;
}
.is-smooth {
transition: transform .1s ease-out;
}