html 太极样式

太极 + 炫光

html 复制代码
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>太极</title>
	</head>
	<style>
	        @keyframes myRote {
	            from {
	                transform: rotate(0deg);
	            } to {
	                transform: rotate(360deg);
	            }
	        }
	        body {
	            background-color: #999;
	        }
	        .box {
	            width: 0px;
	            height: 300px;
	            border-left: 150px solid #000000;
				border-right: 150px solid #FFFFFF;
	            border-radius: 50%;
	            position: relative;
	            animation: myRote 4s linear infinite;
				box-shadow: 0 0 8px 2px rgb(147, 204, 232);

	        }
	        .box::before {
	            content: "";
	            display: block;
	            width: 50px;
	            height: 50px;
	            border: 50px solid #000000;
	            background-color: #FFFFFF;
	            border-radius: 50%;
	            position: absolute;
	            left: -75px;
	        }
	        
	        .box::after {
	            content: "";
	            display: block;
	            width: 50px;
	            height: 50px;
	            border: 50px solid #FFFFFF;
	            background-color: #000000;
	            border-radius: 50%;
	            position: absolute;
	            top: 150px;
	            left: -75px;
	        }
	    </style>
	<body>
	    <div class="box">
	
	    </div>
	</body>
</html>
相关推荐
小白求学125 分钟前
CSS浮动
前端·css·css3
柏箱3 小时前
使用JavaScript写一个网页端的四则运算器
前端·javascript·css
Fan_web12 小时前
jQuery——事件委托
开发语言·前端·javascript·css·jquery
安冬的码畜日常12 小时前
【CSS in Depth 2 精译_044】第七章 响应式设计概述
前端·css·css3·html5·响应式设计·响应式
赛男丨木子丿小喵12 小时前
visual studio2022添加新项中没有html和css
css·html·visual studio
太阳花ˉ15 小时前
html+css+js实现step进度条效果
javascript·css·html
小白学习日记16 小时前
【复习】HTML常用标签<table>
前端·html
懒羊羊大王呀16 小时前
CSS——属性值计算
前端·css
道爷我悟了17 小时前
Vue入门-指令学习-v-html
vue.js·学习·html
看到请催我学习18 小时前
如何实现两个标签页之间的通信
javascript·css·typescript·node.js·html5