为了账号安全,请及时绑定邮箱和手机立即绑定

关于评论的测试代码

<!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta charset="utf-8">

	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		.warp,.info{
			width:300px;
			height: 300px;
			border-radius: 50%;
		}
		.warp{
			
			border:10px solid ;
			border-radius: 50%;
			border-top-color: yellow;
			border-left-color: gray;
			border-right-color: yellow;
			border-bottom-color: gray;
			transform-origin: 50% 50%;
			transition: all .5s ease-in-out;
		}		
		.info{
			background-image: url(1.jpeg);			
			color:red;
			text-align: center;	
			position: absolute;
			transition:all .5s ease-in-out;
		}

		h3{
			margin-top:120px;
		}
		.warp:hover{
			transform: rotate(180deg);
			
		}
		.info:hover{
			transform: rotate(-180deg);			
		}
	</style>
</head>
<body>
<div class="warp">	
	<div class="info">
		<h3>美好的一天</h3>
		<a>想进来看看吗?</a>
	</div>	
</div>	
</body>
</html>


正在回答

1 回答

43行的代码:.warp:hover .info{transform:rotate(-180deg);color:rgba(0,0,0,1);}

30行的代码:color:rgba(0,0,0,0);就可以用了,颜色效果自己改吧?


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
CSS动画实用技巧
  • 参与学习       79032    人
  • 解答问题       83    个

本CSS教程教你使用CSS实现惊艳的动画效果,一起去领略一番

进入课程

关于评论的测试代码

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信