Новые ответы с меткой progress-bar
2
Вот немного упростил ваш код
function setProgress(circle) {
const circumference = 2 * Math.PI * circle.r.baseVal.value;
circle.style.strokeDasharray = circumference;
circle.style.strokeDashoffset = circumference - circle.dataset.percent / 100 * circumference;
}
document.querySelectorAll('.progress-ring__circle').forEach(setProgress);
<...
50 лучших ответов включены
Связанные метки
progress-bar × 166android × 70
java × 38
javascript × 28
c# × 23
jquery × 14
python × 12
winforms × 8
css × 7
ajax × 7
wpf × 7
ios × 7
recyclerview × 7
html × 5
objective-c × 5
android-asynctask × 5
php × 4
многопоточность × 4
download × 4
c++ × 3
python-3.x × 3
html5 × 3
xml × 3
javafx × 3
анимация × 3