I've got a reading that comes in every few seconds.
Currently I'm using thresholds to determine when the animation should take place:
<div ng-class="{'circle1': speed < 10, 'circle2': speed < 13 && speed >= 15, 'circle3': speed >= 15}"></div>
Speed is already updating automatically but at the moment the css style only changes when is goes above 13 and then 15 etc. Instead I want it to dynamically change as the speed changes. So 13.1 produces a larger circle than 13 and 13.2 is larger than 13.1 etc.
circle1 {
border-radius: 100px;
height: 80px;
width: 80px;
left: 128px;
position: relative;
background: green;
}
is the css for circle1. I'd like it to continuously transition from say green to yellow based on speed.