-
Notifications
You must be signed in to change notification settings - Fork 128
/
Copy pathButton Hover.html
55 lines (54 loc) Β· 1.1 KB
/
Button Hover.html
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
<!DOCTYPE html>
<html>
<head>
<title>Button Morphism</title>
<style>
*
{
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
}
body
{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #f2f3f7;
}
a
{
position: relative;
display: inline-block;
padding: 10px 30px;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 2px;
font-weight: 500;
color: #5a84a2;
font-size: 18px;
border-radius: 40px;
box-shadow: -2px -2px 8px rgba(255,255,255,1),
-2px -2px 12px rgba(255,255,255,0.5),
inset 2px 2px 4px rgba(255,255,255,0.1),
2px 2px 8px rgba(0,0,0,0.15);
}
a:hover
{
box-shadow: inset -2px -2px 8px rgba(255,255,255,1),
inset -2px -2px 12px rgba(255,255,255,0.5),
inset 2px 2px 4px rgba(255,255,255,0.1),
inset 2px 2px 8px rgba(0,0,0,0.15);
}
a:hover span
{
display: inline-block;
transform: scale(0.98);
}
</style>
</head>
<body>
<a href="#"><span>Button</span></a>
</body>
</html>