Animation jitters/jumps on transition

in case anyone else runs into this problem, heres how i fixed it