首页 > 其他 > 详细

095图旋转

时间:2020-11-27 09:43:16      阅读:29      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>旋转9特效</title>
		<style>
			*{margin: 0;padding: 0;}
			
			body{background: grey;}
			
			div.d2{
				width: 250px;
				height: 165px;
				margin: 200px auto;
				position: relative;
			}
			
			div.d2 img{
				width: 250px;
				height: 165px;
				position: absolute;
				left: 0;top: 0;
				border: 5px solid white;
				transition: all 0.5s;
			}
			
			.d2:hover img:first-child{
				transform: translate(-70%,0) rotate(-20deg);
			}
			
			.d2:hover img:nth-child(2){
				transform: translate(0,70%) rotate(-20deg);
			}
			
			.d2:hover img:nth-child(3){
				transform: translate(70%,0) rotate(-20deg);
			}
			
			.d2:hover img:nth-child(4){
				transform: translate(0,-70%) rotate(-20deg);
			}
			
			.d2:hover img:nth-child(5){
				transform: scale(1.2,1.2) rotate(-20deg);
			}
		</style>
	</head>
	<body>
		<div class="d2">
			<img src="img/1.jpg" />
			<img src="img/2.jpg" />
			<img src="img/3.jpg" />
			<img src="img/4.jpg" />
			<img src="img/5.jpg" />
		</div>
	</body>
</html>

  

095图旋转

原文:https://www.cnblogs.com/21doctor-sun/p/14046085.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!