Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 3 years ago

countdown-timer-with-a-flip-animation JS

sass/scss
yishak abrham•2,150
@yishak621
A solution to the Launch countdown timer challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


it was fun and easy until animating the card comes to play...but the result worth it .. to create the flip animation...the flip animation basically have a callback function which receive two parameters(arguments)..flipcard[the element that we want to display] and the time that we calculated[newnumber] .. i also consider formatting the time when the number is single digit so i add 0 when its single digit.. another thing to consider is when the countdown ends the page should display some kind of message... it helps me to practice adding animation event listener when it start and when it ends and finally JS will do the rest of magic starting from dynamically adding the exact time when will end the countdown...if u have a better procedure please leave a comment

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 yishak abrham'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