<!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 >滚</div>
 </body>
</html>

JS-tranform-位移-滚动效果

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-08
  • 2021-12-03
  • 2021-09-11
  • 2021-11-23
  • 2021-06-09
相关资源
相似解决方案