forked from GeekNerds/Hacktoberfest-2022
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustom_Shape_Button_With_Hover_Effect.dart
More file actions
55 lines (47 loc) · 1.13 KB
/
Custom_Shape_Button_With_Hover_Effect.dart
File metadata and controls
55 lines (47 loc) · 1.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Custom Shape Button</title>
</head>
<body>
<a href="#">Button</a>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #cbe058;
}
a {
position: relative;
padding: 15px 40px;
background: #fff;
color: #555;
text-decoration: none;
text-transform: uppercase;
font-weight: 500;
font-size: 1.2em;
letter-spacing: 2px;
transition: 0.5s;
clip-path: polygon(90% 0, 100% 50%, 90% 100%, 0% 100%, 10% 50%, 0% 0%);
}
a:hover {
background: #a7b612;
color: #fff;
letter-spacing: 4px;
clip-path: polygon(100% 0%, 90% 50%, 100% 100%, 10% 100%, 0% 50%, 10% 0);
}
</style>
</body>
</html>