-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
51 lines (47 loc) · 1013 Bytes
/
style.css
File metadata and controls
51 lines (47 loc) · 1013 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
body{
text-align: center;
}
.btn {
--color1: #165385;
--color2: #1f3c98;
perspective: 1000px;
padding: 1em 1em;
background: linear-gradient(var(--color1), var(--color2));
border: none;
outline: none;
font-size: 20px;
text-transform: uppercase;
letter-spacing: 4px;
color: #fff;
text-shadow: 0 10px 10px #000;
cursor: pointer;
transform: rotateX(70deg) rotateZ(30deg);
transform-style: preserve-3d;
transition: transform 0.5s;
margin-top: 20%;
}
.btn::before {
content: "";
width: 100%;
height: 15px;
background-color: var(--color2);
position: absolute;
bottom: 0;
right: 0;
transform: rotateX(90deg);
transform-origin: bottom;
}
.btn::after {
content: "";
width: 15px;
height: 100%;
background-color: var(--color1);
position: absolute;
top: 0;
right: 0;
transform: rotateY(-90deg);
transform-origin: right;
}
.btn:hover {
transform: rotateX(30deg) rotateZ(0);
}