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>
相关推荐
搬砖的阿wei7 小时前
CSS常用选择器总结
前端·css
web打印社区8 小时前
vue页面打印:printjs实现与进阶方案推荐
前端·javascript·vue.js·electron·html
RFCEO9 小时前
前端编程 课程十二、:CSS 基础应用 Flex 布局
前端·css·flex 布局·css3原生自带的布局模块·flexible box·弹性盒布局·垂直居中困难
放飞自我的Coder13 小时前
【Mermaid本地实时渲染 单html本地直接运行】
html·mermaid
共享家952713 小时前
打造AI智能”成语接龙“游戏
前端·javascript·人工智能·python·游戏·html
AAA阿giao13 小时前
HTML5模块化开发:结构、样式与交互分离
前端·html·html5
ziblog13 小时前
HTML5 Canvas梦幻背景动画特效
前端·css
顾西爵霞14 小时前
HTML 零基础入门:像搭积木一样建网页
前端·html
顾西爵霞15 小时前
HTML 进阶:给房子装窗户、通道和前台系统
前端·javascript·html
weixin_456907411 天前
2026+:html+css 生态的成型之年与平台化跃迁
前端·css·html