used animateCamera instead of moveCamera to smoothen the rotation