- 30+ Beautiful CSS Gradient Buttons (Free Code + Demos)
- Enjoy this 100% free and open source collection of HTML and CSS gradient button code examples. These CSS Gradient Buttons can be integrated into your website very easily.
- 1. Gradient Button Hover
- 2. Gradient Button Animations
- 3. Gradient Button CSS
- 4. Peach Beach Button
- 5. Flat Buttons With Smooth Hover Effect
- 6. 💐 Colorful Gradient Flex Buttons 💐
- 7. Cat Gradient Button Disco 😸🔘🎨🕺
- 8. Gradient Button Shadows
- 9. Animated Gradient Button [Pure CSS]
- 10. Gradient Buttons With Background-Color Change (CSS-only)
- 11. CSS Gradient Buttons
- 12. Neumorphism Bootstrap Button/gradient Button
- 13. Modern Gradient Buttons
- 14. Cool Effect Gradient Button
- 15. Gradient Button, Hovers Smoothly! | CSS Only
- 16. Sexy Gradient Button
- 17. Gradient Button Hover
- 18. Gradient Hover Animated Button | Welcome In My World
- 19. Button With Gradient Shadow
- 20. Bootstrap V4 Gradient Buttons Examples
- 21. Animated Gradient Button
- 22. Css Gradient Buttons
- 23. Existential Gradient Buttons
- 24. Supa Dupa Buttons
- 25. Customizable Gradient Button Using Function And Map In SCSS (CSS Loop)
- 22 CSS Gradient Buttons
- Author
- Links
- Made with
- About a code
- Gradient Color Button with Hover Glow
- Author
- Links
- Made with
- About a code
- Chroma Button
- Author
- Links
- Made with
- About a code
- Call us Button
- Author
- Links
- Made with
- About the code
- Flat Buttons
- Author
- Links
- Made with
- About the code
- Peach Beach Button
- Author
- Links
- Made with
- About the code
- Cat Gradient Button Disco
- Author
- Links
- Made with
- About the code
- Colorful Gradient Flex Buttons
- Author
- Links
- Made with
- About the code
- Animated Gradient Button
- Author
- Links
- Made with
- About a code
- Animated Rainbow Button
- Author
- Links
- Made with
- About the code
- Gradient Button Hover
- Author
- Links
- Made with
- About the code
- Gradient Button Shadows
- Author
- Links
- Made with
- About the code
- CSS Gradient Buttons
- Author
- Links
- Made with
- About the code
- Gradient Buttons with Background-Color Change
- Author
- Links
- Made with
- About the code
- Gradient Buttons
- Author
- Links
- Made with
- About the code
- Gradient Button Animations
- Author
- Links
- Made with
- About the code
- Gradient Button
- Author
- Pure CSS animated gradient colour button is easier than you think!
- A quick guide on how to add some life to your website
- Introduction
- Outline button — Easy, straight and boring
- Gradient button and text
- Final boss — animated gradient button
30+ Beautiful CSS Gradient Buttons (Free Code + Demos)
Enjoy this 100% free and open source collection of HTML and CSS gradient button code examples. These CSS Gradient Buttons can be integrated into your website very easily.
1. Gradient Button Hover
2. Gradient Button Animations
Animation buttons with background gradients. One button with a simple gradient shift on hover, and another with an infinite animation on hover.
3. Gradient Button CSS
4. Peach Beach Button
5. Flat Buttons With Smooth Hover Effect
6. 💐 Colorful Gradient Flex Buttons 💐
7. Cat Gradient Button Disco 😸🔘🎨🕺
8. Gradient Button Shadows
9. Animated Gradient Button [Pure CSS]
10. Gradient Buttons With Background-Color Change (CSS-only)
Everyone likes Gradients. A selection of Gradient Buttons that change the Background Color when Hovering. The direction can be set in the CSS (see comment or check the JS-Panel for Instruction)
11. CSS Gradient Buttons
12. Neumorphism Bootstrap Button/gradient Button
13. Modern Gradient Buttons
14. Cool Effect Gradient Button
15. Gradient Button, Hovers Smoothly! | CSS Only
16. Sexy Gradient Button
17. Gradient Button Hover
18. Gradient Hover Animated Button | Welcome In My World
I redesign the ghost button of my website. It’s a possible way for my next website design. Visible on http://marcel-pirnay.be/ //!\ text gradient will broke on outdated browsers \
19. Button With Gradient Shadow
20. Bootstrap V4 Gradient Buttons Examples
21. Animated Gradient Button
22. Css Gradient Buttons
23. Existential Gradient Buttons
24. Supa Dupa Buttons
25. Customizable Gradient Button Using Function And Map In SCSS (CSS Loop)
This is a customizable gradient button built in SCSS or Sass. I used CSS loop technique through the Sass map, so that I could shorten the Sass source code. The gradient is animated by just moving the x-axis background position, 100% to the left. This comes with 3 styles: Normal Rounded .
22 CSS Gradient Buttons
A playful set of buttons that utilize CSS gradients for fun colors and animations.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
Gradient Color Button with Hover Glow
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
Chroma Button
Example demonstrates the ability to use a multi-color box shadow using pseudo elements and a blur filter.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
Call us Button
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
Flat Buttons
Flat buttons with smooth hover effect.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
Peach Beach Button
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
Cat Gradient Button Disco
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
Colorful Gradient Flex Buttons
Sweet colorful gradient flex buttons.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
Animated Gradient Button
Pure CSS call to action button with an animated background.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About a code
Animated Rainbow Button
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
Gradient Button Hover
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
Gradient Button Shadows
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
CSS Gradient Buttons
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
Gradient Buttons with Background-Color Change
A selection of gradient buttons that change the background-color when hovering. You can change the directon of the background change in the :hover state. Don’t forget to then also change the background-color direction in the button itself.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
Gradient Buttons
CSS gradient buttons with Font Awesome icons.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
Gradient Button Animations
Animation buttons with background gradients. One button with a simple gradient shift on hover, and another with an infinite animation on hover.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Links
Made with
About the code
Gradient Button
Gradient button with subtle animations.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Author
Pure CSS animated gradient colour button is easier than you think!
A quick guide on how to add some life to your website
Introduction
Most buttons are boring. Solid, standard borders, most of them are not aligned correctly. In this case, let’s learn how to create a gradient colour button with animated borders and text! One single CSS property will handle all animations.
Outline button — Easy, straight and boring
In the first place, let’s start with a basic outline button with hover can be created like this:
a href="/" title="Hello button" class="btn">Helloa>
.btn border: 2px solid #4CAF50; background-color: transparent; color: #4CAF50; padding: 10px 28px; font-size: var(--f-m); cursor: pointer; transition: 256ms all; border-radius: 20px; > .btn:hover background-color: #4CAF50; color: #fff; >
Gradient button and text
One step further — adding gradient borders and text.
To achieve that, we need to do a few things:
- Wrap our button with div and set the background as our body colour
- Add pseudoelements to create borders
- Lastly, we need to add three CSS properties:
- background-clip: text;-webkit-background-clip: text;
- -webkit-text-fill-color: rgba(255,255,255,0.001);
a class="btn" href="/" title="Hello">Helloa>
.btn display: block; width: 150px; background: linear-gradient(90deg, #FFFF00 6%, #FFA500 25%, #F14444 45%, #D53567 55%, #9A109A 94%); text-align: center; padding: 13px 20px; color: #fff; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: rgba(255,255,255,0.001); transition: 256ms all; position: relative; cursor: pointer; > .btn:before background: rgb(24,24,24); content: ''; position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; z-index: -1; > .btn:after content: ''; position: absolute; top: -1px; bottom: -1px; left: -1px; right: -1px; background: linear-gradient(90deg, #FFFF00 6%, #FFA500 25%, #F14444 45%, #D53567 55%, #9A109A 94%); transition: 256ms all; z-index: -1; >
Awesome! You have created a gradient border button with gradient text! Now we will bring it to life with extra CSS.
Final boss — animated gradient button
In CSS we can’t transition gradients. It would be awesome to see smooth animation with CSS like this:
.gradient background-image: linear-gradient(red, blue); transition: background-image 0.5s linear; > .gradient:hover background-image: linear-gradient(green, orange); >
But it won’t work. It immediately changes to the other one without transition. There are a few hacks to do it, but my favourite is to animate background-position.
Firstly, we need to add two properties to our button:
In this case, I added a gradient starting with white colour. It enhances the impression of an animated border.
a class="btn" href="/" title="Hello">Helloa>
.btn display: block; width: 150px; background: linear-gradient(90deg,#ffffff 3%,#ffffff 47%,#FFFF00 53%,#FFA500 72%,#F14444 77%,#D53567 88%,#9A109A 97%); background-size: 200% 100%; background-position: left center; text-align: center; padding: 13px 20px; color: #fff; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: rgba(255,255,255,0.001); transition: 256ms all; position: relative; cursor: pointer; > .btn:before content: ''; position: absolute; top: -1px; bottom: -1px; left: -1px; right: -1px; background: linear-gradient(90deg,#ffffff 3%,#ffffff 47%,#FFFF00 53%,#FFA500 72%,#F14444 77%,#D53567 88%,#9A109A 97%); transition: 256ms all; z-index: -1; background-size: 200% 100%; background-position: left center; > .btn:after background: rgb(24,24,24); content: ''; position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; z-index: -1; > .btn, .btn:before background-position: right center; >
You can play with the final button Here.