CSS3之过渡

一、效果图

二、源码

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body {
background-color: #9acaee;
}
.pop {
width: 550px;
height: 250px;
margin: 100px auto;
background: url(images/paopao.png) no-repeat left top,url(images/paopao.png) no-repeat right bottom #9F89EE;
transition: all 1s;
border-radius: 20px;
}
.pop:hover {
background-position: right bottom, left top;
}
</style>
</head>
<body>
<div class="pop"></div>
</body>
</html>

猜你喜欢

转载自www.cnblogs.com/zlinger/p/9569709.html