Nexus,
elem
[0]
или так, ниже рабочий, немного откорректированный вариант, предложенный
Nexus,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">p{height: 1000px;}</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jQuery-viewport-checker/1.8.8/jquery.viewportchecker.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/radialIndicator/1.3.1/radialIndicator.min.js"></script>
<script>
$(function(){
$('.indicatorContainer').each(function(index){
var $t=$(this), value = $t.data('value');
$t = $t.radialIndicator({
frameTime:120,
barColor: '#87CEEB',
barWidth: 7,
radius:90, // width of circle
initValue: 0,
roundCorner:true,
percentage:true
})
.viewportChecker({ repeat: true,
callbackFunction:function(elem,action){
$t.value(0).animate(value);
}
}).data('radialIndicator');
});
});
</script>
</head>
<body>
<p></p>
<div class="indicatorContainer" data-value="20"></div>
<div class="indicatorContainer" data-value="40"></div>
<div class="indicatorContainer" data-value="60"></div>
<p></p>
</body>
</html>