图可能模糊,类似于这种效果,动态旋转
环形图用图片, 旋转做背景图
文字居中
例子:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
div {
width: 100px;
height: 100px;
/* background-color: red; */
text-align: center;
line-height: 100px;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: no-preference) {
.appLogo {
animation: App-logo-spin infinite 20s linear;
background-color: aqua;
position: absolute;
top: center;
left: center;
z-index: -1;
}
}
</style>
</head>
<body>
<div>
<div class="appLogo"></div>
文字
</div>
</body>
</html>
10 回答11.2k 阅读
5 回答4.9k 阅读✓ 已解决
4 回答3.1k 阅读✓ 已解决
2 回答2.8k 阅读✓ 已解决
3 回答4.9k 阅读✓ 已解决
2 回答4.8k 阅读✓ 已解决
4 回答4.4k 阅读✓ 已解决
大概的实现了下,样式可以调整,动画也可以设置


效果如下:
实现代码: