+ 3

Problem with CSS animation

I’m working on this little project and it seems to work alright for a few seconds. Both the “lungs” expand and contract slowly, but after that one cycle it skips the contraction and chops to the expansion. How can I fix this to help to run more smoothly? https://code.sololearn.com/WuwIzhb0caWk/?ref=app

23rd Apr 2020, 2:35 AM
Andrew Johnson
Andrew Johnson - avatar
8 Respostas
+ 2
https://code.sololearn.com/W8fu3C8gHErn/?ref=app
23rd Apr 2020, 2:33 PM
Ayan Poddar
Ayan Poddar - avatar
+ 1
try to use this animation-timing-function: linear; it make the animation smooth and make the end same as the start
23rd Apr 2020, 7:00 AM
Ayan Poddar
Ayan Poddar - avatar
+ 1
I tried that but it still isn't working
23rd Apr 2020, 1:07 PM
Andrew Johnson
Andrew Johnson - avatar
+ 1
its beacuse the end of the animation and the beginning of the animation is not same
23rd Apr 2020, 2:20 PM
Ayan Poddar
Ayan Poddar - avatar
+ 1
check this i demonstratie both situation..
23rd Apr 2020, 2:33 PM
Ayan Poddar
Ayan Poddar - avatar
+ 1
Okay, but I think it must be different with an ellipse.
23rd Apr 2020, 3:52 PM
Andrew Johnson
Andrew Johnson - avatar
+ 1
I got it, finally😂 thank you so much for your time. it helped
23rd Apr 2020, 4:11 PM
Andrew Johnson
Andrew Johnson - avatar
0
im glad
23rd Apr 2020, 4:15 PM
Ayan Poddar
Ayan Poddar - avatar