-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathButton.css
More file actions
66 lines (57 loc) · 1.19 KB
/
Button.css
File metadata and controls
66 lines (57 loc) · 1.19 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
/*Check Descripton To Get This Font-Family
<link href="https://fonts.googleapis.com/css2?family=Raleway&display=swap" rel="stylesheet">
font-family: 'Raleway', sans-serif;
*/
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background-color: #36373c;
font-family: 'Raleway', sans-serif;
}
.wrapper{
position: absolute;
width: 160px;
top: 50%;
left: 50%;
margin-top: -5em;
margin-left: -5em;
}
.box{
background-color: #fff000;
cursor: pointer;
transition: all 0.85s cubic-bezier(.17, .67, .14, .93);
transform-style: preserve-3d;
transform-origin: 100% 50%;
width: 160px;
height: 64px;
}
.box:hover{
transform: rotateX(-90deg);
}
.side{
position: absolute;
box-shadow: border-box;
display: inline-block;
width: 160px;
height: 64px;
text-align: center;
text-transform: uppercase;
padding-top: 1.5em;
}
.top{
background-color: #fff000;
color: black;
transform: rotateX(90deg) translate3d(0, 0, 2em);
}
.front{
background-color: #222229;
color: #fff;
box-shadow: inset 0 0 0 5px #fff000;
transform: translate3d(0, 0, 2em);
}
/*Hurrey Coders, CSS is also done!
For code, kindly check description.
*/