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>
相关推荐
张3蜂8 小时前
HTML5语义化标签:现代网页的骨架与灵魂
前端·html·html5
御形封灵9 小时前
纯CSS实现方块下落等待动画
前端·css
转角羊儿9 小时前
CSS补充重要知识
前端·css
林九生10 小时前
【Vue3】解决 Tailwind CSS v4 + Vite 8 中 `@import “tailwindcss“` 不起作用的问题
前端·css
happymaker062611 小时前
web前端学习日记——DAY01(HTML基本标签)
前端·学习·html
我命由我1234512 小时前
JS 开发问题:url.includes is not a function
开发语言·前端·javascript·html·ecmascript·html5·js
淮北49412 小时前
tmux使用指南
linux·python·html·tmux·md
遗憾随她而去.12 小时前
高德地图自定义点标记: SVG vs HTML+CSS两种方案
前端·css
啪叽12 小时前
别再手写 if-else 选字体颜色了,CSS contrast-color() 来帮你处理
前端·css
齐鲁大虾14 小时前
如何在HTML/JavaScript中禁用Ctrl+C
前端·javascript·html