How to use CSS animations to create a cube's opening like in the picture?
问题 In my project, when the homepage is opened, it should run a CSS animation so that the cube's faces open. After the animation is complete the faces should be like in the picture (I need to have a result like the first opening in the picture). This is my code, .sk-folding-cube { margin: 20px auto; width: 40px; height: 40px; position: relative; } .sk-folding-cube .sk-cube { float: left; width: 50%; height: 50%; position: relative; -webkit-transform: scale(1.1); -ms-transform: scale(1.1);