Button Preview
Hover over the button to see the effect
HTML Code:
<!DOCTYPE html>
<html>
<head>
<style>
.beautiful-btn {
width: 150px;
height: 150px;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
font-family: 'Arial', sans-serif;
font-size: 16px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 1px;
border: none;
border-radius: 10px;
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.beautiful-btn:hover {
transform: translateY(-3px);
box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}
.beautiful-btn:active {
transform: translateY(1px);
}
.beautiful-btn::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(90deg,
transparent,
rgba(255, 255, 255, 0.2),
transparent);
transform: translateX(-100%);
transition: 0.5s;
}
.beautiful-btn:hover::after {
transform: translateX(100%);
}
</style>
</head>
<body>
<button class="beautiful-btn">
Click Me
</button>
</body>
</html>
‘;
echo ‘‘;