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>
相关推荐
ZC跨境爬虫1 小时前
跟着 MDN 学 HTML day_37:(深入掌握 CustomEvent 自定义事件接口)
前端·javascript·ui·html·音视频
一起养小猫9 小时前
HTML5+CSS3+JavaScript实现高木同学圣诞树GalGame完整开发指南
javascript·css3·html5·galgame
前端若水9 小时前
过渡(transition)高级:贝塞尔曲线、硬件加速
前端·css·css3
anOnion9 小时前
构建无障碍组件之Table Pattern
前端·html·交互设计
编程技术手记10 小时前
Vite 开发环境前后端端口隔离:解决 index.html 冲突问题
前端·html
前端若水15 小时前
实战:纯 CSS 实现“有图片的卡片不同样式”
前端·css
2301_8156453816 小时前
html.
前端·html
qq_3813385016 小时前
CSS @layer 级联层实战指南:从样式冲突到分层架构
前端·css
ZC跨境爬虫17 小时前
跟着 MDN 学 HTML day_33:(Attr 接口与属性节点的深入理解)
前端·javascript·ui·html·音视频·html5
用户0595401744617 小时前
AI Agent记忆丢失踩坑实录:这个问题让我排查了3天
前端·css