基本信息
源码名称:css3 垃圾桶 动画效果 纯css的 源码下载
源码大小:1.35KB
文件格式:.zip
开发语言:CSS
更新时间:2013-08-13
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍

<style type="text/css">
body {
	padding: 50px;
}
a {
	color: #000;
	text-decoration: none;
}
.trashbin {
	width: 128px;
	height: 128px;
	margin: 100px auto;
	-webkit-transition:background-position 0.3s ease-in;
	background: url(http://res.wanz.im/images/smile.gif) center no-repeat;
}
.trashbin .lid{
	background: url(http://res.wanz.im/images/trash.png) 0 0 no-repeat;
	height: 38px;
	-webkit-transition:-webkit-transform 0.3s ease-in;
	-webkit-transform: rotateZ(0) translate(0px, 0px);
}
.trashbin:hover{
	-webkit-transition:background-position 0.3s ease-in;
	background-position: center top; 
}
.trashbin:hover .lid{
	-webkit-transition:-webkit-transform 0.3s ease-in;
	-webkit-transform: rotateZ(-45deg) translate(0px, -40px);
}
.trashbin .can{
	background: url(http://res.wanz.im/images/trash.png) 0 -38px no-repeat;
	height: 90px;
}
</style>

<body>
<h1 style="text-align: center;"><a href="http://www.w3cplus.com/demo/create-transhbin-with-css3.html" target="_blank">css3动画——垃圾桶</a></h1>

<div class="trashbin">
<div class="lid"></div>
<div class="can"></div>
</div>
</body>