-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
99 lines (84 loc) · 1.44 KB
/
style.css
File metadata and controls
99 lines (84 loc) · 1.44 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
92
93
94
95
96
97
98
99
/* Reset CSS */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, Helvetica, sans-serif;
background: steelblue;
}
.container {
max-width: 1100px;
margin: auto;
height: 100vh;
display: flex;
align-items: center;
justify-content: space-between;
}
.btn {
position: relative;
width: 200px;
height: 50px;
font-size: 1.5rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 3px;
background: transparent;
border: 2px solid white;
color: white;
border-radius: 10px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.7);
cursor: pointer;
outline: none;
transition: color 0.5s;
overflow: hidden;
}
.btn:hover {
color: steelblue;
}
/* button background Overlay */
.btn:before {
position: absolute;
content: "";
width: 100%;
height: 100%;
background: white;
z-index: -1;
}
/* Top Effect */
.btn-top:before {
transition: top 0.5s;
top: 100%;
left: 0;
}
.btn-top:hover:before {
top: 0;
}
/* Right Effect */
.btn-right:before {
transition: left 0.5s;
top: 0;
left: -100%;
}
.btn-right:hover:before {
left:0;
}
/* Bottom Effect */
.btn-bottom:before {
transition: top 0.5s;
top: -100%;
left: 0;
}
.btn-bottom:hover:before {
top:0;
}
/* Left Effect */
.btn-left:before {
transition: left 0.5s;
top: 0;
left: 100%;
}
.btn-left:hover:before {
left:0;
}