-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
41 lines (41 loc) · 754 Bytes
/
style.css
File metadata and controls
41 lines (41 loc) · 754 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
*{
margin: 0;
padding: 0;
box-sizing:border-box;
}
.wrapper{
height:100vh;
width:100vw;
display:flex;
align-items:center;
justify-content: center;
}
.pink-button{
position:relative;
background-color:red;
padding:0.8rem 1.7rem;
color:white;
font-size:18px;
z-index:5;
box-shadow:5px 5px 7px 0px black;
}
.pink-button::before{
content:'';
background-color:black;
position:absolute;
transform:scaleX(0);
transform-origin: left;
transition:all 1s ease-in-out;
height:100%;
z-index:-11;
width:100%;
top:0px;
right:0px;
left:0px;
}
.pink-button:hover::before{
transform:scaleX(1);
}
p{
/* z-index:5; */
}