blob: 5f33c46fd971bee7bc7554bb1d79800af6b97015 [file] [log] [blame]
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@keyframes rotateplane {
0% {
transform: perspective(120px) rotateX(0deg) rotateY(0deg);
} 50% {
transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
} 100% {
transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
}
}
@keyframes rotatecircle {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes running-progress {
0% { margin-left: 0px; margin-right: 100%; }
50% { margin-left: 25%; margin-right: 0%; }
100% { margin-left: 100%; margin-right: 0; }
}
.square-spinner(@size: 40px, @background: #3FAE2A, @speed: 1.2s) {
width: @size;
height: @size;
background: @background;
animation: rotateplane @speed infinite ease-in-out;
}
.circle-spinner(@size: 40px, @thickness: 3px, @color: #3FAE2A, @speed: 1.2s) {
animation: rotatecircle @speed infinite ease-in-out;
border: @thickness solid @color;
border-right-color: transparent;
border-radius: 50%;
display: inline-block;
height: @size;
width: @size;
}
.line-progress(@height: 3px, @color: #3FAE2A, @speed: 1.2s) {
height: @height;
background-color: @color;
animation: running-progress @speed cubic-bezier(0.4, 0, 0.2, 1) infinite;
}