JSDM

HTML

 
1
<div class="box">
2
  <a href="#"></a>
3
  <a href="#"></a>
4
  <a href="#"></a>
5
  <a href="#"></a>
6
  <a href="#"></a>
7
  <a href="#"></a>
8
</div>

CSS

x
 
1
*{margin:0;padding:0;}
2
.box{
3
    width: 300px;
4
    height: 300px;
5
    position: relative;
6
    margin: 100px;
7
    transform: rotateX(30deg) rotateY(-30deg);
8
    transform-style: preserve-3d;
9
    animation: spin 5s infinite linear;
10
  }
11
  .box:after{
12
    content: ".";
13
    height: 0;
14
    clear: both;
15
    overflow: hidden;
16
    display: block;
17
    visibility: hidden;
18
  }
19
  .box a{
20
    text-decoration: none;
21
    text-align: center;
22
    line-height: 200px;
23
    font-size: 35px;
24
    font-weight: bold;
25
    color: black;
26
    position: absolute;
27
    display: block;
28
    width: 200px;
29
    height: 200px;
30
    background: red;
31
    opacity: .4;
32
    transform-style: preserve-3d;
33
  }
34
  .box a:nth-child(1){
35
    background: #fe04ef;
36
    transform: translateZ(-100px);
37
  }
38
  .box a:nth-child(2){
39
    background: #0497fe;
40
    transform: translateZ(100px);
41
  }
42
  .box a:nth-child(3){
43
    background: #04fefb;
44
    transform: rotateY(90deg) translateZ(-100px);
45
  }
46
  .box a:nth-child(4){
47
    background: #fe2d04;
48
    transform: rotateY(-90deg) translateZ(-100px);
49
  }
50
  .box a:nth-child(5){
51
    background: #effe04;
52
    transform: rotateX(-90deg) translateZ(-100px);
53
  }
54
  .box a:nth-child(6){
55
    background: #04fe56;
56
    transform: rotateX(90deg) translateZ(-100px);
57
  }
58
59
@keyframes spin {
60
  from {
61
    transform: rotateX(-10deg) rotateY(0deg);
62
  }
63
  to {
64
    transform: rotateX(-10deg) rotateY(360deg);
65
  }
66
}
? ?
? ?
必须是有效的URL
+ 添加另一个资源

JS

xxxxxxxxxx
1
 
1
必须是有效的URL
+ 添加另一个资源
Close

文件管理 点击文件查看URL

图片

  1. 暂无文件

CSS

  1. 暂无文件

JavaScript

  1. 暂无文件

其他

  1. 暂无文件
拖动文件到上面的区域或者:
加载中 ..................