Much better and smoother than handmade animations I think. It uses sine(see code) animations for smoothness I will be using this method in SPIDERMAN X(if it ever comes out)
feel free to use, no need to give credit