Reworked the animation so it is smoother and less buggy

Signed-off-by: Kenneth Lim <kenlimmj@gmail.com>