fixed jumping issue in button animation