小编Sre*_*dhi的帖子

创建立方体打开动画

我有以下HTML和CSS代码来绘制多维数据集的顶部.所以它向下移动,我希望它能够像开放一样动画.我无法弄清楚如何转换顶部,以便它似乎打开.

我已经包含了多维数据集的整个代码.关于这一点,我希望顶部开放.

.pers500 {
  perspective: 500px;
  -webkit-perspective: 500px;
  -moz-perspective: 500px;
}
/* Define the container div, the cube div, and a generic face */

.container {
  width: 25%;
  margin: 0 auto;
  margin-top: 2em;
  border: none;
  animation-name: moveDown;
  animation-duration: 2s;
  animation-timing-function: linear;
  transform: translate(0px, 110px);
}
.cube {
  width: 70%;
  height: 70%;
  backface-visibility: visible;
  perspective-origin: 150% 150%;
  transform-style: preserve-3d;
  -webkit-backface-visibility: visible;
  -webkit-perspective-origin: 150% 150%;
  -webkit-transform-style: preserve-3d;
}
.face {
  display: block;
  position: absolute;
  border: none;
  line-height: 100px;
  font-family: sans-serif;
  font-size: 60px; …
Run Code Online (Sandbox Code Playgroud)

css css3 css-transforms css-animations css-shapes

10
推荐指数
1
解决办法
235
查看次数

标签 统计

css ×1

css-animations ×1

css-shapes ×1

css-transforms ×1

css3 ×1