Camera movement smoothly and rotation around object

Hi, I want move camera close to object , then rotate the camera around object like video.
Without any library
Does anyone know?