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如何实现圆形旋转动画效果


基础教程推荐
猜你喜欢
- 关于二级域名下使用一级域名下的COOKIE的问题 2024-02-12
- 网站加载中loading..样式二代码介绍 2025-01-16
- 通过CSS实现逼真水滴动效 2022-11-23
- JS实现页面跳转与刷新的方法汇总 2024-01-08
- 详谈js中window.location.search的用法和作用 2023-12-19
- KingDesign中文文档官网介绍 2025-01-17
- 使用HTML / PHP从SQL数据库创建列表 2023-10-26
- 「HTML+CSS」--自定义加载动画【025】 2023-10-26
- 页面图片浮动左右滑动效果的简单实现案例 2024-01-23
- 补码原码反码··原文:https://www.cnblogs.com/goahead--linux/p/10904701.html 2023-10-25