In CSS, you can smoothly make transitions between two or more colors. CSS has two types of gradients:
background-image: radial-gradient(shape size at position, start-color, ...);
<!DOCTYPE html> <html> <head> <title> Transition work with linear gradient background button </title> <style> button { background-image: linear-gradient(to bottom right, #800000, white); } button:hover { background-image: linear-gradient(to bottom right, #d23318, yellow); } h1 { color: #e013ac; } </style> </head> <body> <center> <h1>BAJARANGI SOFT</h1> <b>Hover over the bytton</b> <br> <br> <button>Click me</button> </center> </body> </html>