-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcs.css
More file actions
73 lines (73 loc) · 1.36 KB
/
cs.css
File metadata and controls
73 lines (73 loc) · 1.36 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
body{
background-image: url(./assets/unsplash.jpg);
background-size: cover;
background-repeat:no-repeat;
background-position: center;
height: 100vh;
position: relative;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
#openbtn{
position: absolute;
top: 70%;
left: 10%;
width: 350px;
height: 80px;
font-size: 2rem;
background: transparent;
color: white;
border: solid 2px white;
border-radius: 10px;
padding:5px;
box-shadow: 0 0 3px black;
transition: .5s;
}
#openbtn:hover{
background-color: white;
color: black;
}
#model{
background-color: white;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,50%);
height: 100px;
padding: 10px 20px;
border-radius: 5px;
font-size: 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
animation-name: animatemodel;
animation-duration: .4s;
gap: 10px;
}
#closebtn{
font-size: 3rem;
cursor: pointer;
color: red;
}
#modelcontainer{
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
@keyframes animatemodel{
from{
top: -300px;
opacity: 0;
}
to{
top: 50%;
opacity: 1;
}
}