The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join
Snippet · CSS

Gradient Button

Shared by Mukesh Gujjar · August 8, 2026

26 views
Back to Snippets

Create a modern button with a smooth linear gradient and hover animation.

 

Usage
<button class=”gradient-btn”>
Read More
</button>

.gradient-btn {
    display: inline-block;
    padding: 12px 24px;
    color: #fff;
    background: linear-gradient(45deg, #4f46e5, #06b6d4);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gradient-btn:hover {
    transform: translateY(-2px);
}
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

0 comments

Proudly supported by