Animation pause and resume implemented