Implement Animation logic