jquery实现三维长方体多角度翻转动画效果代码

代码语言:html

所属分类:三维

代码描述:jquery实现三维长方体多角度翻转动画效果代码

代码标签: 长方体 多角度 翻转 动画 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  
  
<style>
@import url("https://fonts.googleapis.com/css?family=Lato");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  text-align: center;
  background: #9b59b6;
  padding: 20px;
  font-family: Lato;
  color: #fff;
}

h1 {
  font-weight: normal;
  font-size: 40px;
  font-weight: normal;
  text-transform: uppercase;
  margin: 20px 0 10px 10px;
}
h1 span {
  font-size: 13px;
  display: block;
  padding-left: 4px;
}

.container {
  width: 200px;
  height: 133.3333333333px;
  position: relative;
  margin: 40px auto;
  perspective: 1200px;
}

.box {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.5s;
}
.box figure {
  display: table;
  position: absolute;
  text-align: center;
  color: white;
}

.box .front,
.box .back {
  width: 200px;
 .........完整代码请登录后点击上方下载按钮下载查看

网友评论0