Need help with a code

I am trying to add a Count Down element to my website. For example, 100% quickly counts to 0%. I have attached an HTML code I found on codepen but it counts up rather than down. Can someone help me with reversing the count direction from up to down? I want it to go from 100% to 1% in the duration of one second. Thank you!

Take a look onto this example here…

https://russian-dima.wixsite.com/meinewebsite/simple-return-function

Probably it can help you to generate an up-&-down-counter.

Thank you for responding. That’s not what I am looking for. I am looking for an animated number that climbs down to a specific number. In the HTML file I’ve attached, $0 becomes $100. I need the same thing, except reverse.

Just found this one…
https://www.wix.com/velo/forum/coding-with-velo/problem-with-number-counter

The shown post could have similaryty with your wished function.

And you even do not need any HTML-Component or embedings.