Make a Countdown element

Hi all,
I am trying to create a countdown, the copilot helped me :slight_smile: to transform a number (as minutes) to this format “mm:ss” then return it and display it on the page. But how do I trigger the action to count to “0”? Is there any material to show how I utilize the copilot effectively or anyone to show me a way?

Thanks in advance for any help.

Hi @Cihan :wave:

Here’s a video I recorded to help you get started: Countdown timer — Tella

Here’s the tutorial I used to figure things out.

I didn’t go all the way to the “stop the counter” once the deadline has passed but I think you can do this with conditional rendering:

I’m asking a colleague if that would be the best practice or if there’s a more efficient way of stopping the timer. I’ll keep you posted :slight_smile:

1 Like