-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
59 lines (52 loc) · 981 Bytes
/
style.css
File metadata and controls
59 lines (52 loc) · 981 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
49
50
51
52
53
54
55
56
57
58
59
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 100%;
background-color: #282828;
display: flex;
align-items: center;
justify-content: center;
font-family: "Poppins", sans-serif;
}
.btn {
position: relative;
z-index: 9;
display: inline-flex;
cursor: pointer;
overflow: hidden;
border-radius: 999px;
background-color: #ede9fe;
padding: 12px 28px;
color: #0d0d0d;
font-size: 12px;
text-transform: uppercase;
font-weight: 500;
border: none;
outline: none;
}
.container {
position: relative;
display: inline-flex;
overflow: hidden;
}
.content1 {
position: relative;
transform: translateY(0%);
transition: transform 0.5s, skewY 0.5s;
}
.content2 {
position: absolute;
transform: translateY(164%);
transition: transform 0.5s, skewY 0.5s;
}
.btn:hover .content1 {
transform: translateY(-164%) skewY(12deg);
}
.btn:hover .content2 {
transform: translateY(0%) skewY(0deg);
}