Flip animation implemented! :D

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.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @grace-snow
Hi
This doesn’t work at all for me I’m afraid (on iphone). It doesn’t fit on screen and when I scroll to see the animated bit it’s just flickering back n forth between numbers.
Sorry to be bearer of bad news
Marked as helpful - @vatsalsinghkv
Hey would you like to teach me how did you make cards flip....
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