bfintal / Counter-Up2

Counter-Up is a lightweight module that counts up to a targeted number when the number becomes visible.
MIT License
196 stars 65 forks source link

How to start value from 0? #12

Open asif2369 opened 3 years ago

asif2369 commented 3 years ago

Initially (before starting the animation), I can see the destination (final) number, then it starts from 0 and then goes to the final number. Is there any way we can see 0 at first, then it goes up?

bfintal commented 3 years ago

One way to do it is to hide your elements visually via inline CSS, then after you trigger it to count up, make the element visible.