|
|
@@ -1,7 +1,6 @@
|
|
|
-//@import '../theme/variables.scss';
|
|
|
+@import "./animation.scss";
|
|
|
@import './variables.scss';
|
|
|
@import './mixin.scss';
|
|
|
-@import '../keyframes/rotate.scss';
|
|
|
|
|
|
$module: #{$prefix}-spin;
|
|
|
|
|
|
@@ -10,23 +9,32 @@ $module: #{$prefix}-spin;
|
|
|
display: inline-block;
|
|
|
@include size($width-spin_middle);
|
|
|
|
|
|
+ @keyframes #{$prefix}-animation-rotate {
|
|
|
+ from {
|
|
|
+ transform: rotate(0);
|
|
|
+ }
|
|
|
+ to {
|
|
|
+ transform: rotate(360deg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
&-wrapper {
|
|
|
text-align: center;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
- transform: $motion-spin_wrapper-translate;
|
|
|
- top: $spacing-spin_wrapper-top;
|
|
|
+ transform: translateY(-50%);
|
|
|
+ top: 50%;
|
|
|
color: $color-spin-bg;
|
|
|
|
|
|
& > svg {
|
|
|
- animation: $motion-spin_wrapper_svg-animationDuration linear infinite #{$prefix}-animation-rotate;
|
|
|
+ animation: $animation_duration-spin_wrapper-spin linear infinite #{$prefix}-animation-rotate;
|
|
|
@include size($width-spin_middle);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&-animate {
|
|
|
display: inline-flex;
|
|
|
- animation: $motion-spin_animate_svg-animationDuration linear infinite #{$prefix}-animation-rotate;
|
|
|
+ animation: $animation_duration-spin_customChildren-spin linear infinite #{$prefix}-animation-rotate;
|
|
|
}
|
|
|
|
|
|
&-children {
|