Implemented hide and show pause button animation