JSFiddle - React, Tailwind, and code Playground
HTML
<p>Enter two floats</p>
<input type="text" value="4.37" id="inp1" />
<br/>
<input type="text" id="inp2" />
<br/>
<div id="result"></div>
<br/>
<button>Animate</button>
JavaScript
$('button').on('click', function() {
var o = {value : $('#inp1').val};
$.Animation( o, {
value: $('#inp2').val()
}, {
duration: 800,
easing : 'easeOutCubic'
}).progress(function(e) {
$('#result').text((e.tweens[0].now).toFixed(2));
});
});