<DOCTYPE.HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Shape Button </title>
<link rel="stylesheet" href="style.css">
<body>
<a href="#">Code Name is Adi</a>
</body>
</head>
</html>
- STYLE.CSS>
{*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: #cbc5c5;
}
a
{
position: relative;
padding: 15px 40px;
background: rgb(0, 0, 0);
color: rgb(255, 255, 255);
text-decoration: none;
taxt-transform:uppercase;
font-weight: 500;
font-size: 1.2cm;
letter-spacing: 2px;
transition: 0.5s;
clip-path: polygon(91% 0, 100% 50%, 91% 100%, 0% 100%, 8% 52%, 0% 0%);
}
a:hover
{
background: #ff0000;
color: #fff;
letter-spacing: 4px;
clip-path: polygon(100% 0%, 90% 52%, 100% 100%, 9% 99%, 0% 50%, 10% 0);
}
0 Comments
If your having doubt please let me know