-
Notifications
You must be signed in to change notification settings - Fork 0
/
teste botão
107 lines (93 loc) · 2.11 KB
/
teste botão
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
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compartible" content="Ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<button></button>
</body>
</html>
css
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
margin: 0;
padding: 0;
font-family: 'poppins', sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #000;
}
button {
position: relative;
width: 150px;
height: 50px;
border: 3px solid #fff;
outline:none;
background: transparent;
cursor: pointer;
font-size: 20px;
color: #fff;
display:flex;
justify-content: center;
align-items: center;
overflow: hidden;
box-shadow:
0 0 5px #0ef,
inset 0 0 10px #0ef,
0 0 20px #0ef,
inset 0 0 40px #0ef,
inset 0 0 40px #0ef,
0 0 80px #0ef,
0 0 160px #0ef;
transition: .3s;
}
button:hover {
box-shadow:
0 0 5px #f0f,
inset 0 0 10px #f0f,
0 0 20px #f0f,
inset 0 0 40px #f0f,
inset 0 0 40px #f0f,
0 0 80px #f0f,
0 0 160px #f0f;
}
button::before {
content: 'hover me';
position: absolute;
text-shadow:
0 0 20px #0ef,
0 0 20px #0ef,
0 0 20px #0ef,
0 0 20px #0ef,
0 0 20px #0ef;
transition: transform .3s;
}
button:hover::before{
transform: translateY(50px);
opacity: 0;
}
button::after {
content: 'thanks!';
position: absolute;
text-shadow:
0 0 20px #f0f,
0 0 20px #f0f,
0 0 20px #f0f,
0 0 20px #f0f,
0 0 20px #f0f;
transform: translateY(-50px);
opacity: 0;
transition: transform .3s;
}
button:hover::after {
transform: translateY(0);
opacity: 1;
}