css3 - how to flip an image smoothly when hovered using css? -
i trying flip image when hovered on using css3 animations. problem rotation not @ smooth , many bugs there in it. please me solve problem.
here css code
.rotate { transition:transform 0.7s; transition-timing-function : ease-in-out; } .rotate:hover { opacity :100%; transform:rotatey(180deg); } .back { visibility : hidden; text-align : center; position:absolute; top:0; bottom:0; left:0; right:0; opacity:0; transform:rotatey(180deg); background-color: lightgray; border-color:white; padding-top:40px; } .rotate:hover .back { visibility:visible; opacity:0.7; }
you have use <figure>
, <figcaption>
elements...
example: https://jsfiddle.net/e3xfj5ng/
Comments
Post a Comment