css gradient button code example
Example 1: how to insert gradient in css
body{
background-image: radial-gradient(#EA52F8 5.66%, #0066FF 94.35%);
background-image: linear-gradient(45.34deg, #EA52F8 5.66%, #0066FF 94.35%);
}
Example 2: how to change button gradient
.Button:hover {
background: linear-gradient( 90deg,Color1,Color2 ) ;
}
Example 3: css button background linear gradient
.btn-grad {background-image: linear-gradient(to right, #E55D87 0%, #5FC3E4 51%, #E55D87 100%)}
.btn-grad {
margin: 10px;
padding: 15px 45px;
text-align: center;
text-transform: uppercase;
transition: 0.5s;
background-size: 200% auto;
color: white;
box-shadow: 0 0 20px #eee;
border-radius: 10px;
display: block;
}
.btn-grad:hover {
background-position: right center;
color: #fff;
text-decoration: none;
}