Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 4 years ago

Flip animation implemented! :D

Sarvagya Sharma•555
@sarvagya2545
A solution to the Launch countdown timer challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


So finally, I did implement the flip animation! This was somewhat challenging. I had almost no problems while doing the flip in css on hover but to integrate it with setTimeOut is tough!! You have to add and remove classes at specific intervals and make sure that they work properly with the effect.

My javascript code has kind of become spagghetti code while writing this and it was sad. :(

I learnt that I am not able to change scss variables using media queries. Guess it is back to css custom properties :_)

Any feedback on how I could have done it better, what should I have focussed on while solving this would be valued. It would mean so much to me.

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 Sarvagya Sharma'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