Answers for "how to add animation to a button hover"

CSS
25

on hover css

/* Changes an element's color on hover */

.selector {
	background-color: black;
}

.selector:hover {
	background-color: blue;
}
Posted by: Guest on February-15-2020
21

css hover

.a:hover{background-color: black;}
Posted by: Guest on February-20-2020
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

Code answers related to "how to add animation to a button hover"

Browse Popular Code Answers by Language