Answers for "hover.css how to use"

CSS
45

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
0

css hover

#element {
  transform: translateX(0px);
  background: #ffffff;
  transition: 0.5s;
}
#element:hover {
  transform: translateX(50px);
  background: #000000;
  transition: 0.5s;
}
Posted by: Guest on December-26-2021

Browse Popular Code Answers by Language