Design a button with gradients, shadows, and hover effects — copy ready-to-use CSS and HTML
Background
Shape & type
Border & shadow
Hover effect
Live preview
CSS
.custom-button {
display: inline-block;
padding: 12px 24px;
color: #ffffff;
background: linear-gradient(135deg, #6366f1, #a855f7);
border: none;
border-radius: 10px;
font-size: 16px;
font-weight: 600;
line-height: 1.2;
cursor: pointer;
box-shadow: 0 9px 18px rgba(99, 102, 241, 0.35);
transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.custom-button:hover {
transform: translateY(-2px);
box-shadow: 0 13px 26px rgba(99, 102, 241, 0.45);
}HTML
<button class="custom-button">Click me</button>