bernii / gauge.js

100% native and cool looking JavaScript gauge
MIT License
1.42k stars 391 forks source link

Annimation ? #23

Open thecatz opened 11 years ago

thecatz commented 11 years ago

Hello, i use this gauge to count my visitor on my website, and i want to make the same animation like on your demo site : when value is going up, the gauge do an annimation . I've tried to use setInterval, myfunction, 5000) for example and the gauge is completly refresh but don not make any annimation. Can someone explain me how do make it possible, cause i'm on it since several weeks... thx

Andrekra commented 11 years ago

The gauge animates on itself by using set (gauge.set(500) for instance). If you set it using a setInterval the gauge will continously set itself with an animation which could look like it's not animating or real choppy. So setting it once would suffice.