QuickSnip LogoA light blue logo with a thunderbolt in bracketsQuickSnip

Button Hover Effect

Creates a hover effect with a color transition.

  • button
  • hover
  • transition

Code

.button {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #0056b3;
}