In the NetEase front-end micro-professional course, there is an extracurricular assignment to implement a 3D rotating cube. I spent some time doing it, and it was interesting. I wrote a simple tutorial for everyone to learn. First put the final effect to be achieved.