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 :: two background css 
Css :: associate checkbox with label 
Css :: how to stop browser from swipe left to right history-navigation javascript 
Css :: box shadow transperent 
Css :: css display none transition 
Css :: lightred color hex 
Css :: @extend must be used with a %placeholder 
Css :: bootstrap scrollable modal 
Css :: truncate in css 
Css :: ul text decoration css 
Css :: css element same line 
Css :: remove site title squarespace 
Css :: html button scale to fit text 
Css :: change br height 
Css :: center div inside div flex 
Css :: html5 video hide timeline 
Css :: css flip text 
Css :: circle button html 
Css :: get second child div css 
Css :: scss hover 
Css :: change style of ordered list numbers css 
Css :: bootstrap ol 
Css :: how to add text stroke in css 
Css :: tailwind center vertically 
Css :: css first element 
Css :: text decoration underline not removing 
Css :: video camera icon font awesome 
Css :: css for bigger screen size 
Css :: center a button wordpress 
Css :: background clip text 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =