Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 5 years ago

AlpineJS to update countdown every second

Jake Hickenlooper•100
@jkenlooper
A solution to the Launch countdown timer challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Haven't done much with CSS lately and wanted to refresh those skills. This solution uses AlpineJS to update the countdown timer every second. It starts at the initial duration and pauses for few seconds before starting so the screenshot can get the correct time. I started with the desktop design and then scaled things down for the mobile design which got a bit messier then I'd like. I'm sure there are lots of clean up for this, but I feel I spent enough time at it for the challenge.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Jake Hickenlooper's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License