Search
 
SCRIPT & CODE EXAMPLE
 

CSS

how to apply a transition to a child element when hovering over parent element

.parent {
    background: red;
}
.child {
    overflow: hidden;
    height: 0;
    background: blue;
    -webkit-transition: all .8s ease;
    -moz-transition: all .8s ease;
    -ms-transition: all .8s ease;
    -o-transition: all .8s ease;
    transition: all .8s ease;
    color: white;
}
.parent:hover > .child {
    height: 30px;
    display: block;
}
Comment

PREVIOUS NEXT
Code Example
Css :: css grid cheat sheet 
Css :: css custom easing 
Css :: target element pseudo-classes 
Css :: bootstrap-navbar-brand 
Css :: css class inheritance 
Css :: text-shadow 
Css :: como tirar a sidebar css 
Css :: css tbody space tr 
Css :: arriviste 
Css :: mailto link with no decoration 
Css :: hiding text css and leaving whitespace 
Css :: vue scoped scss media query 
Css :: PY Bisect key sort 
Css :: elementsone after other css 
Css :: css tutorials 
Css :: light grey border css 
Css :: easyui datagrid header color 
Css :: btn keeps pushing down on window resize 
Css :: Sideways Left Tabs 
Css :: font-family: robort; 
Css :: twig language name 
Css :: .dropdown { float: left; overflow: hidden; } 
Css :: how to reduce the size of png image in css 
Css :: 1 412 779 in words 
Css :: set opacity except one 
Css :: css - global -Typogryphy 
Css :: alternate table row color css 
Css :: overiade main style only for specific page sass 
Css :: css selector match class 
Css :: zoom image on click css 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =