css实现鼠标放上去时图片过渡转换动画效果

c3ff92a522276720730da44ec6eac2bc

代码

<div class="test">
			<div></div>
			<div></div>
		</div>
	.test{
			width: 200px;
			height: 200px;
			margin-top: 200px;
			margin-left: 300px;
			overflow: hidden;
			background-color: red;
		}
		.test div{
			width: 100%;
			height: 100%;
			transition: 500ms;
		}
		.test div:last-child{
			background-color: green;
		}
		.test:hover div{
			transform: translateY(-100%);
		}
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容