JSDM

HTML

5
1
.mega-container
2
   - (1..20).each do |j|
3
      .container
4
         - (1..22+j).each do |i|
5
            %div #{}
!

CSS

x
 
1
body{
2
  background:#2c3e50;
3
}
4
.mega-container{
5
  width:500px;
6
  height:500px;
7
  overflow:hidden;
8
  position:absolute;
9
  left:50%;
10
  top:50%;
11
  -webkit-transform:translateX(-50%) translateY(-50%);
12
  transform:translateX(-50%) translateY(-50%);
13
}
14
.container{
15
  width:1500px;
16
  clear:both;
17
}
18
.container  div{
19
  height:7px;
20
  width:7px;
21
  float:left;
22
  margin-right:25px;
23
  margin-bottom:25px;
24
  border-radius:50%;
25
  background-color:#fff;
26
  -webkit-transform-origin:250% 250%;
27
  transform-origin:250% 250%;
28
  -webkit-animation: rotate 2s infinite linear;
29
  animation: rotate 2s infinite linear;
30
}
31
@-webkit-keyframes rotate {
32
    from {-webkit-transform:rotate(0deg);}
33
    to {-webkit-transform:rotate(360deg);}
34
}
35
36
@keyframes rotate {
37
    from {transform:rotate(0deg);}
38
    to {transform:rotate(360deg);}
39
}
40
41
$lower : 1;
42
$upper : 100;
43
44
45
@for $i from $lower through $upper{
46
  .container div:nth-child( #{$i} ){
47
    -webkit-animation-delay:#{-$i*150}ms;
48
  }
49
}
50
@for $j from 1 through 20{
51
  .container:nth-child( #{$j} ){
52
    margin-left:-#{$j*30}px;
53
  }
54
}
55
56
!
? ?
? ?
必须是有效的URL
+ 添加另一个资源

JS

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

文件管理 点击文件查看URL

图片

  1. 暂无文件

CSS

  1. 暂无文件

JavaScript

  1. 暂无文件

其他

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