How to smoothly transition between animations

Writing an FPS framework (2020) maybe this will help, alot of stuff but if you see the videos, you will understand how the final result will be