【发布时间】:2016-07-27 14:17:00
【问题描述】:
Here 是我的小提琴链接。我用 css 创建了一个移动的微调器。但是旋转/移动的黑色部分应该有圆形边缘。无法从我现在拥有的东西中得到它。
.loader {
position: relative;
border-top: 10px solid #805da4;
border-right: 10px solid #805da4;
border-bottom: 10px solid #805da4;
border-left: 10px solid #000;
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
-webkit-animation-name: spinner;
-webkit-animation-duration: 3s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
-webkit-animation-delay: 0s;
display: block;
border-radius: 50%;
width: 100%;
height: 100%;
}
【问题讨论】:
-
你需要 SVG...
-
请问有没有办法在没有 SVG 的情况下做到这一点? @Paulie_D
-
你不能改变“黑色部分”的边框,因为它本身已经是一个边框(开始变换之前的左边框)
-
不,不是真的...
<canvas>也许但不是这样的边框。 -
@Paulie_D,现在请检查我的答案。我在没有 SVG 的情况下实现了它
标签: jquery html css css-transitions loader