效果如下
代码如下
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.warp{
width: 200px;
height: 200px;
/* 透视 */
perspective:5000px;
padding: 200px;
/* 开启3D */
transform-style: preserve-3d;
border: 2px solid #000;
position: relative;
transition: all 2s linear;
transform: rotate3D(1,1,0,60deg);
/* transform:translatez(-100px); */
-