<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
#scroll{
width:100px;
height:100px;
border-radius:50%;
background:red;
border:6px solid yellow;
text-align:center;
line-height:100px;
font-size:40px;
color:#fff;
font-weight:bold;
/*过渡效果*/
transition:all 3s;
}
#scroll:hover{
transform:translate(500px) rotate(1080deg);
}
</style>
</head>
<body>
<div id="scroll">滚</div>
</body>
</html>
JS-tranform-位移-滚动效果
猜你喜欢
转载自www.cnblogs.com/-hjj/p/9943195.html
今日推荐
周排行