JSDM

HTML

2
1
.wait
2
.wait
!

CSS

x
 
1
@mixin animation($animationName){
2
    @-webkit-keyframes #{$animationName}{
3
      @content
4
    }
5
    @-moz-keyframes #{$animationName}{
6
      @content
7
    }
8
    @-o-keyframes #{$animationName}{
9
      @content
10
    }
11
    @keyframes #{$animationName}{
12
      @content
13
    }
14
}
15
16
17
$col1:rgba(189,21,80,1);
18
$col2:rgba(233,127,2,1);
19
$col3:rgba(248,202,0,1);
20
$col4:rgba(138,155,15,1);
21
22
$baseColor:transparent;
23
24
$dimension:50px;
25
$rotation:360deg;
26
27
28
*{
29
  margin:0;
30
  padding:0;
31
}
32
33
html,body{
34
  width:100%;
35
  height:100%;
36
}
37
38
body{
39
  background:#222;
40
  overflow:hidden;
41
}
42
43
.wait{
44
  width:30px;
45
  height:30px;
46
  border-radius:50%;
47
  top:0;
48
  left:0;
49
  right:0;
50
  bottom:0;
51
  margin:auto;
52
  position:absolute;
53
  
54
  &:nth-child(2n-1){
55
    animation:rotate 2s infinite;
56
    border-top:$dimension/4 solid $baseColor;
57
    border-left:$dimension/2 solid $col2;
58
    border-right:$dimension/2 solid $col3;
59
    border-bottom:$dimension/4 solid $baseColor;
60
    &::before{
61
    content:'';
62
    display:block;
63
    width:$dimension;
64
    height:$dimension;
65
    position:absolute;
66
    background:$col3;
67
    top:-10px;
68
    left:$dimension/1.65;
69
    border-radius:50%;
70
    z-index:1;
71
    }
72
    &::after{
73
      content:'';
74
      display:block;
75
      width:$dimension;
76
      height:$dimension;
77
      position:absolute;
78
      background:$col2;
79
      top:-10px;
80
      left:-$dimension;
81
      border-radius:50%;
82
    }
83
  }
84
  
85
  &:nth-child(2n-2){
86
    animation:rotateAgainst 2s infinite;
87
    border-top:$dimension/2 solid $col1;
88
    border-left:$dimension/4 solid $baseColor;
89
    border-right:$dimension/4 solid $baseColor;
90
    border-bottom:$dimension/2 solid $col4;
91
    &::before{
92
    content:'';
93
    display:block;
94
    width:$dimension;
95
    height:$dimension;
96
    position:absolute;
97
    background:$col1;
98
    top:-$dimension;
99
    left:-$dimension/6;
100
    border-radius:50%;
101
    z-index:1;
102
    }
103
    &::after{
104
      content:'';
105
      display:block;
106
      width:$dimension;
107
      height:$dimension;
108
      position:absolute;
109
      background:$col4;
110
      top:$dimension/1.6;
111
      left:-$dimension/5;
112
      border-radius:50%;
113
    }
114
  }  
115
}
116
117
@include animation(rotate){
118
  0%{
119
    transform:rotate(0) scale(1);
120
  }
121
  50%{
122
    transform:rotate($rotation/2)scale(.5);
123
  }
124
  100%{
125
    transform:rotate($rotation) scale(1);
126
  }
127
}
128
@include animation(rotateAgainst){
129
  0%{
130
    transform:rotate(0) scale(1);
131
  }
132
  50%{
133
    transform:rotate(-$rotation/2)scale(.5);
134
  }
135
  100%{
136
    transform:rotate(-$rotation) scale(1);
137
  }
138
}
!
? ?
? ?
必须是有效的URL
+ 添加另一个资源

JS

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

文件管理 点击文件查看URL

图片

  1. 暂无文件

CSS

  1. 暂无文件

JavaScript

  1. 暂无文件

其他

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