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>
相关推荐
Bellafu6664 小时前
selenium的css定位方式有哪些
css·selenium·tensorflow
我有一棵树6 小时前
前端开发中 SCSS 变量与 CSS 变量的区别与实践选择,—— 两种变量别混为一谈
前端·css·scss
rising start7 小时前
前端基础一、HTML5
前端·html·html5
Never_Satisfied7 小时前
在JavaScript / HTML中,div容器在内容过多时不显示超出的部分
开发语言·javascript·html
im_AMBER7 小时前
CSS 01【基础语法学习】
前端·css·笔记·学习
DokiDoki之父7 小时前
前端速通—CSS篇
前端·css
尘世中一位迷途小书童7 小时前
🎨 SCSS 高级用法完全指南:从入门到精通
前端·css·开源
Giant1008 小时前
小白也能懂的响应式布局:从 0 到 1 学会适配所有设备
css
银安9 小时前
CSS排版布局篇(8):Grid 二维布局
前端·css
不会算法的小灰10 小时前
HTML盒子模型详解
前端·html