Help to Fix animation timer flip css or javascript

I’m having a problem synchronizing my flipper timer.

well, I’ve designed a timer and I’d like to create the animation effect of a page being flipped.

i’ve already done all the html, css and javascript. i’d like to do this animation at the seconds level, but when i do it it’s impossible to synchronize the animation with the change of seconds.

here is the link to my codepen: https://codepen.io/shikamaru098/pen/ZEdvpex

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

Please don’t open an additional thread for the same project, you can use the existing thread for this:

https://forum.freecodecamp.org/t/fix-animation-timer/707715/3