-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
91 lines (81 loc) · 1.61 KB
/
Copy pathstyle.css
File metadata and controls
91 lines (81 loc) · 1.61 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
text-align: center;
align-items: center;
}
button {
all: unset;
position: relative;
cursor: pointer;
}
button::after {
content: '';
position: absolute;
left: -11px;
top: -10px;
width: calc(100% + 20px);
height: calc(50% + 5px);
border-top: 1px solid rgba(255, 255, 255, 0.5);
border-left: 1px solid rgba(255, 255, 255, 0.5);
border-right: 1px solid rgba(255, 255, 255, 0.5);
}
button::before {
content: '';
position: absolute;
left: -11px;
bottom: -10px;
width: calc(100% + 20px);
height: calc(50% + 5px);
border-left: 1px solid rgba(255, 255, 255, 0.5);
border-right: 1px solid rgba(255, 255, 255, 0.5);
border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
button div {
position: relative;
display: inline-block;
overflow: hidden;
width: auto;
height: auto;
padding: 15px 0;
background: #ff4655;
}
button div::after {
content: '';
position: absolute;
right: 0;
bottom: 0;
width: 5px;
height: 5px;
background: #0f1923;
transition: 0.4s;
}
button:hover div::after {
background: #ece8e1;
}
button div span {
position: absolute;
width: 120%;
height: 110%;
transform: translate(-100%, -20px);
background: #0f1923;
clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
transition: 0.4s;
}
button:hover div span {
transform: translate(-10%, -20px);
}
button div a {
position: relative;
text-decoration: none;
color: #ffffff;
font-family: sans-serif;
text-transform: uppercase;
font-size: 14px;
font-weight: bold;
padding: 20px 80px;
}
https://codepen.io/leptr/pen/OJbwwob