Html
    Css
    Js

    
                        
    html {
	overflow:hidden;
	-ms-touch-action:none;
	-ms-content-zooming:none;
}
body {
	position:absolute;
	margin:0px;
	padding:0px;
	background:#fff;
	width:100%;
	height:100%;
}
#screen {
	position:absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
	background:#000;
	perspective:500px;
	-webkit-perspective:500px;
}
.cube {
	position:absolute;
	top:50%;
	left:50%;
	width:0;
	height:0;
	margin:0;
	user-select:none;
	transform-style:preserve-3d;
	-webkit-transform-style:preserve-3d;
}
.face {
	position:absolute;
	margin-left:-300px;
	margin-top:-200px;
	width:600px;
	height:400px;
	backface-visibility:hidden;
	-webkit-backface-visibility:hidden;
	transform-origin:50% 50%;
	-webkit-transform-origin:50% 50%;
	transition:outline 0.5s ease-in-out 0s;
	cursor:pointer;
}
.button {
	position:absolute;
	margin-left:-150px;
	margin-top:-100px;
	width:300px;
	height:200px;
}
.face:hover {
	outline:rgba(255,255,255,1) solid 10px !important;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

3D回廊效果

0