-2
When you place Transition on an object, every time you refresh the page, that animation/transition takes place. Is it possible to leave it exclusively for the action you want? For example :Hover?
I know I can do css this way:
#button{
background-color: #fff;
padding: 10px 20px;
}
#button:hover{
background-color: #000;
transition: background-color 0.25s;
}
But this way only works when passing the mouse, the transition will not occur when you have the mouse output on the object. Without being javascript, has to leave exclusively for a certain action?
Place the transaction without Hover and apply the desired change in the Hover that already works
– Wallace Maxters