I have given header a transition using pseudo class hover. But i want it to go to it's original position with the same cubic-bezier transition function in 0.5s. You can see it abruptly goes back when hover is taken off. So is there any pseudo class for hover out or will i have to use jQuery?
header{
background:#000;
padding:50px ;
-webkit-transition: 0s padding-bottom;
}
header:hover{
padding-bottom:90px;
-webkit-transition-duration: 0.5s;
-webkit-transition-timing-function: cubic-bezier(0.175,0.885,0.320,1.275);
}
<header>
</header>