-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathneu-button-rounded.html
67 lines (63 loc) · 1.35 KB
/
neu-button-rounded.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
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<style>
body {
background: #bcf0f6;
display: flex;
align-items: center;
justify-content: center;
margin: 0;
}
div {
display: flex;
align-items: center;
justify-content: center;
margin-top: 50vh;
position: absolute;
}
.neu {
width: 150px;
height: 150px;
transition: 0.5s;
display: flex;
align-items: center;
justify-content: center;
font-size: 30px;
border-radius: 20px;
border-radius: 50px;
background: linear-gradient(145deg, #f0ffff, #bcf0f6,#bcf0f6);
box-shadow: 20px 20px 60px #a0ccd1,
-20px -20px 60px #d8ffff;
transition: 0.4s;
border: none;
outline: none;
background-size: 200% 200%;
/* increased background size to allow translation */
}
.neu:active {
box-shadow: none;
background-position: 100% 100%;
/* right bottom, 100% width (flush right) 100% height (flush bottom) to reveal portion of gradient fil that has the same color as the bg*/
transition: 0.4s;
color: white;
}
</style>
<body>
<div>
<button class="neu">
+
</button>
<!--
==
==
==
GRADIENTS MADE WITH NEUMORPHISM.IO
==
==
==
--></div>
</body>
</html>