css3 - Onmouseout transition with animation -


i'm trying animate div on mouseout keyframes animation :

div{     -webkit-transition: -webkit-animation:flipiny 2s; }  div:hover{     -webkit-animation: flipiny 0.8s; } 

so when user mouseout there transition,but want using animation keyframes not normal transition:

@-webkit-keyframes flipiny {      0% {         -webkit-transform: perspective(400px) rotatey(90deg);         opacity: 0;     }      40% {         -webkit-transform: perspective(400px) rotatey(-10deg);     }      70% {         -webkit-transform: perspective(400px) rotatey(10deg);     }      100% {         -webkit-transform: perspective(400px) rotatey(0deg);         opacity: 1;     } } 


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -