-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhover Button.html
More file actions
70 lines (62 loc) · 1.56 KB
/
hover Button.html
File metadata and controls
70 lines (62 loc) · 1.56 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
<style>
html{
background-color: black;
}
.button {
height: 50px;
width: 150px;
border: none;
border-radius: 10px;
cursor: pointer;
position: relative;
top: 250px;
left: 700px;
overflow: hidden;
transition: all 0.5s ease-in-out;
}
.button:hover {
box-shadow: .5px .5px 150px #252525;
}
.type1::after {
content: "Thanks";
height: 50px;
width: 150px;
background-color: #008080;
color: #fff;
position: absolute;
top: 0%;
left: 0%;
transform: translateY(50px);
font-size: 1.2rem;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.5s ease-in-out;
}
.type1::before {
content: "Hover me";
height: 50px;
width: 150px;
background-color: #fff;
color: #008080;
position: absolute;
top: 0%;
left: 0%;
transform: translateY(0px) scale(1.2);
font-size: 1.2rem;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.5s ease-in-out;
}
.type1:hover::after {
transform: translateY(0) scale(1.2);
}
.type1:hover::before {
transform: translateY(-50px) scale(0) rotate(180deg);
}
</style>
<button class="button type1">
</button>