How to Add a Countdown Timer in Webflow
Learn how to add a countdown timer in Webflow to create urgency on your landing pages with a JavaScript script.
In this tutorial, Sandro, cofounder of the Gemeos Webflow agency, shows you how to add a countdown timer in Webflow to create urgency on your landing pages.
Example
1. Create the elements in Webflow
Create 4 Text Blocks on your page: one for days, hours, minutes, and seconds. Give them these IDs respectively: countdown-days, countdown-hours, countdown-minutes, countdown-seconds.
2. Add this script in the <body>
Update the targetDate value with your target date in ISO format.
3. Publish and test
The timer updates every second. When the target date is reached, it stops automatically. Don’t forget to add an end message (for example: "Offer expired") by hiding the timer with CSS or JS.
Conclusion
A countdown timer creates urgency and boosts conversions. Use cases:
- Limited-time promotional offer
- Product launch
- Event or webinar registration
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.








.avif)






