Answers for "ease oout when not in hover"

CSS
0

out transition does not ease

.button {
    transition: all 0.35s ease-in-out;   /* Hover off */
}
.button:hover {
    transition: all 1s ease-in;         /* On hover */
}
Posted by: Guest on May-09-2021
0

animation not hover out

/* Add animation to normal selector as well, besides hover selector */
div {
  background-color: #333;
  transition: background-color 400ms;
} 

div:hover {
  background-color: #000;
  transition: background-color 400ms;
}
Posted by: Guest on January-08-2022

Browse Popular Code Answers by Language