<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.demo{ width: 32px; height: 32px; background: url(https://out.img.pan.lizhenqiu.com/FkJ6oDe7KZ5UAJvu71I-YrHil7xh) no-repeat;
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transition: .3s ;
-o-transition: .3s ;
transition: .3s ;
}
.demo:hover{ -webkit-transform: rotate(180deg);
-ms-transform: rotate(180deg);
-o-transform: rotate(180deg);
transform: rotate(180deg); }
</style>
</head>
<body>
<div id="animation" class="demo">
</div>
</body>
</html>
Article Detail
transition删除按钮旋转180度过渡效果
Document .demo{ width: 32px; height: 32px; background: url(https://out.img.pan.l...
transition导航背景色块,从下往上过渡效果
仿新浪App上面的导航
点击文字即可看到效果