Answers for "button hover animation css"

CSS
1

hover effect button css

/*CSS Hover*/
.button {
  border-radius: 3px;
  border: none;
  background-color: red;
  color: white;
  transition: all 0.3s ease
}
.button:hover {
  transform: rotate(360deg);
  transform: scale(1.01);
}
Posted by: Guest on September-10-2021
1

how to add animation to a button hover

.btn {
  background-color: #ddd;
  border: none;
  color: black;
  padding: 16px 32px;
  text-align: center;
  font-size: 16px;
  margin: 4px 2px;
  transition: 0.3s;
}

.btn:hover {
  background-color: #3e8e41;
  color: white;
}
Posted by: Guest on December-15-2020
0

hover effect button css

<!--BUTTON-->
<button class="button">CLICK</button>
<link type="stylesheet" src="style.css">
Posted by: Guest on September-10-2021

Browse Popular Code Answers by Language