Rainbow Colored Text Button #146
CSS Rainbow colored text button
Adding these style CSS buttons to your website is easier than you think. Simply copy and paste the CSS code provided with each button design into your stylesheet
Preview Button Style
You can view the default style of buttons, the disabled state mode style of buttons, and the full-width block style of the button here. Some buttons style may not display in full width format
Button Source Code HTML and CSS
Click the button below to download the source code or edit it live.
To copy this click on the icon at the top right of the code box
.btn-146 {
font-size: 16px;
font-weight: 700;
color: transparent;
background: #ffffff;
border: solid 1px #aaa;
outline: none;
padding: 12px 24px;
position: relative;
line-height: 24px;
border-radius: 9px;
transform-style: preserve-3d;
perspective: 600px;
transition: transform 0.1s;
font-family: Arial, Helvetica, sans-serif;
cursor: pointer;
text-decoration: none;
user-select: none;
display: inline-flex;
justify-content: center;
align-items: center;
/*** full width block ***/
/* width: 100%; */
}
.btn-146 span {
background: linear-gradient(90deg, #f00, #ff2b00, #f50, #ff8000, #fa0, #ffd500, #ff0, #d4ff00, #af0, #80ff00, #5f0, #2bff00, #0f0, #00ff2b, #0f5, #00ff80, #0fa, #00ffd5, #0ff, #00d4ff, #0af, #007fff, #05f, #002bff, #00f, #2a00ff, #50f, #7f00ff, #a0f, #d400ff, #f0f, #ff00d4, #f0a);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-fill-color: transparent;
display: block;
}
.btn-146:active {
background: #000;
transition: 0.3s;
box-shadow: 1px 1px 4px 0 #2B3044;
}
/*** disabled style ***/
.btn-146:disabled {
pointer-events: none;
opacity: .65;
color: #7e7e7e;
background: #dcdcdc;
text-shadow: none;
box-shadow: none;
}
.btn-146:disabled span {
background: none;
-webkit-text-fill-color: inherit;
color: #7e7e7e;
}