Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css smooth transition in and out

You want smooth transition in and out?
put the transition in the parent selector

.btn {
  	transition: 200ms;
}

.btn:hover {
	transform: translateY(5px)
}

for shadow

.card-hover {
  transition: 200ms;
}

.card-hover:hover {
  box-shadow: 4px 4px 0px 0px rgba(192,23,93,0.75);
  -webkit-box-shadow: 4px 4px 0px 0px rgba(192,23,93,0.75);
  -moz-box-shadow: 4px 4px 0px 0px rgba(192,23,93,0.75);
}
Comment

PREVIOUS NEXT
Code Example
Css :: how to make img cover parent div 
Css :: remove button shadow css 
Css :: css change if mobile 
Css :: text align justify 
Css :: jquery css 
Css :: text underline hover css 
Css :: image grascale css 
Css :: how to make header always on top in html 
Css :: ion-tab-bar transparent 
Css :: how to apply linear gradient to text in css 
Css :: JS make text not highlightable 
Css :: jquery if css property is 
Css :: how to center divs in css 
Css :: css center in grid 
Css :: css prevent line break 
Css :: chrome hide blue highlight css mobile 
Css :: less calc 
Css :: box shador of one border css 
Css :: verticle line css 
Css :: force element to bottom of page 
Css :: grab cursor css 
Css :: html dim entire screen 
Css :: css remove margin around page 
Css :: Conditionally loading resources with media queries 
Css :: @extend must be used with a %placeholder 
Css :: why css does not apply when complete url is entered home/index 
Css :: onclick change visibility 
Css :: css selected color 
Css :: html5 video hide timeline bar 
Css :: how to make auto scroll to the end in css 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =