You are on page 1of 1

<!

DOCTYPE html>
<html>
<head>
<style>
/* Button Styles */
.button {
display: inline-block;
position: relative;
padding: 10px 20px;
font-size: 18px;
color: #ffffff;
text-transform: uppercase;
text-decoration: none;
border: none;
background-color: #4286f4;
overflow: hidden;
transition: all 0.3s ease;
}

.button::before,
.button::after {
content: "";
position: absolute;
width: 100%;
height: 2px;
background-color: #ffffff;
transition: all 0.3s ease;
}

.button::before {
top: 0;
}

.button::after {
bottom: 0;
}

/* Hover Effects */
.button:hover {
background-color: transparent;
color: #4286f4;
}

.button:hover::before,
.button:hover::after {
width: 0;
}
</style>
</head>
<body>
<a href="#" class="button">Hover Me</a>
</body>
</html>

You might also like