Color change on hover

code block# Color change on hover

Submit button is very essential for form submission.

Here is the Button of submit which on hover changes it's color to another.

HTML Code :

<head>
<link rel="stylesheet" type="text/css" href="button1.css" />
</head>
<button class="button1">Submit</button>

CSS Code :

.button1 {
  width: 100px;
  height: 50px;
  background-color: black;
  font-size: 25px;
  color: darkgoldenrod;
  margin-top: 50%;
  margin-bottom: 50%;
  margin-left: 50%;
  -webkit-transition: background-color 2s ease-out;
  -moz-transition: background-color 2s ease-out;
  -o-transition: background-color 2s ease-out;
  transition: background-color 2s ease-out;
  background-image: linear-gradient(180deg, #fbc2eb 0%, #a6c1ee 100%);
  border-radius: 30px;
  transition: all 2s;
}
.button1:hover {
  color: crimson;
  background-color: white;
  cursor: pointer;
  transition: all 1s;
  background-image: linear-gradient(90deg, #fbc2eb 0%, #a6c1ee 100%);
}