Use visual studio to write a problem that cannot be previewed

Hello everyone,
I originally tested the whole website in codepen, but now I want to write it in visual studio.
But today, I tried to write the HTML.CSS.JS successfully tested by codepen into visual studio and tried to preview it with LIVE SERVER. The result was that the embedded window cake did not show the 3D image.

I also tried to use the successful example shown by SHAPDIVER in CODEPEN, but it was also unsuccessful.

Is there any setting I didn’t make?

Please help again, thanks

I have solved the problem by myself
Thank you everyone XD

Method from here: