1
边界半径梯度我有这个简单的CSS微调,在这里:与透明背景
html {
background: black;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
@keyframes k__common-spin-cw {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
.wd-spinner {
height: 30px;
width: 30px;
border-style: solid;
border-color: rgba(255, 255, 255, 0.15);
border-width: 2px;
border-radius: 100%;
border-top-color: #00ba8c;
-webkit-animation: k__common-spin-cw 700ms linear infinite;
animation: k__common-spin-cw 700ms linear infinite;
}
<div class="wd-spinner"></div>
是否有可能与边界半径渐变边框,而不是具有突出显示的border-top
的尾部突然结束,使其渐变渐变渐变,同时保持背景透明?
也就是说真棒,但反正是有保持敏感?我希望能够毫不费力地改变微调框的大小。 –
不幸的是,如果您想要全面的浏览器支持,并且box-shadow不支持百分比,则只能通过box-shadow实现。您可能的解决方法是:1)指定em的长度并更改字体大小2)在变换中应用比例 – vals