Search
 
SCRIPT & CODE EXAMPLE
 

CSS

transition css hover

/* Transition is how much my element will take time to change his state 
   or apply a specific style on it at specific */
.my-div{
  background-color: #f00; /*Red*/
  transition: 3s ease-in-out;
  /* transition: .5s ease-in-out; [0.5 seconds] */
}
.my-div:hover{
  background-color: #00f; /*Blue*/
}
/* .my-div background-color will be changed from red to blue in 3 seconds*/
Comment

transition on hover

div {
  transition: background-color 0.5s ease;
  background-color: red;
}
div:hover {
  background-color: green;
}
Comment

PREVIOUS NEXT
Code Example
Css :: css hide text if too long 
Css :: apple font css 
Css :: css transition cross browser 
Css :: how to use between in media query 
Css :: css disable text select 
Css :: text overflow ellipsis css 
Css :: html static background 
Css :: AppDataRoaming pm eact-native.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. 
Css :: inline styling width 
Css :: z-index max value 
Css :: center an input css 
Css :: click through css 
Css :: css select all elements except last css 
Css :: input number hide arrows 
Css :: animation keep end state 
Css :: ul no indent 
Css :: css how to center images in a table cell 
Css :: transparent input box 
Css :: css focus outline none 
Css :: how to put element in center in html 
Css :: gatsby hide scroll bar 
Css :: css change image color 
Css :: make an anchor tag inactive 
Css :: remove button default border css 
Css :: image float animation css 
Css :: add background image and color css 
Css :: css logo color 
Css :: cdd first child 
Css :: remove line from a href css 
Css :: how to stop a page from scrolling horizontally 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =