restrict animations to home