39
rated 0 times
[
40]
[
1]
/ answers: 1 / hits: 103130
/ 11 Years ago, sat, june 8, 2013, 12:00:00
I am updating a numeric value
inside an element
by doing intervalled ajax requests
.
To make the whole thing a bit more alive, I want to count from the current
value to the new
one, by partially in- or decreasing the value
over a time of n sec
.
So basically something like this:
<div id=value>100</div>
<script type=text/javascript>
/** Decrease $value (over a time of 2 seconds) till it reaches 25 */
$value.increaseAnimation(-75, {duration:2});
</script>
Is there a javascript library for doing so?
More From » css