Head over to https://threejs.org/docs/index.html#manual/en/introduction/Creating-a-scene Follow the steps to add a scene, renderer and camera alongwith the cube which animates along x and y axis
Head over to https://threejs.org/docs/index.html#manual/en/introduction/Creating-a-scene
Follow the steps to add a scene, renderer and camera alongwith the cube which animates along x and y axis