css3如何实现圆形旋转动画效果,下面编程教程网小编给大家详细介绍一下具体实现代码!
html代码:
<div class="arc-rotate">
<div class="demo"></div>
</div>
css3语法:
body {
background: #f00;
}
.arc-rotate {
width: 300px;
height: 300px;
border: 3px solid white;
border-top-color: green;
border-bottom-color: red;
margin: 100px;
border-radius: 50%;
animation: circle 4s infinite linear;
background: white;
}
@-webkit-keyframes circle {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(-360deg);
}
}
.demo {
width: 250px;
height: 250px;
border: 3px solid white;
border-left-color: blue;
border-right-color: yellow;
margin: 25px;
border-radius: 50%;
animation: circle 4s infinite ease;
background: white;
}
以上是编程学习网小编为您介绍的“css3如何实现圆形旋转动画效果”的全面内容,想了解更多关于 前端知识 内容,请继续关注编程基础学习网。
编程基础网
本文标题为:css3如何实现圆形旋转动画效果
基础教程推荐
猜你喜欢
- vue中如何实现多选表单组件? 2025-01-12
- springmvc 结合ajax批量新增的实现方法 2023-02-23
- JavaScript插件Tab选项卡效果 2024-02-08
- 使用Nginx配置来动态解析Nginx/Html目录下文件夹做为二级域名的前缀 2023-10-25
- KPC前端UI组件库中文文档官网介绍 2025-01-15
- vuejs实现element-plus脚手架的引入介绍 2025-01-13
- Vue引入CreateJS 2023-10-08
- Express的路由详解 2024-03-08
- js实现复制功能(多种方法集合) 2023-12-13
- uniapp打包app提示通讯录权限问题,如何取消通讯录权限 2022-10-30
