element/packages/theme-default/src/spinner.css

47 lines
739 B
CSS
Raw Normal View History

2016-11-02 04:24:05 +00:00
@charset "UTF-8";
@import "./common/var.css";
@component-namespace el {
@b time-spinner {
width: 100%;
white-space: nowrap;
2016-11-02 04:24:05 +00:00
}
@b spinner {
display: inline-block;
vertical-align: middle;
}
@b spinner-inner {
animation: rotate 2s linear infinite;
width: 50px;
height: 50px;
& .path {
stroke: #ececec;
stroke-linecap: round;
animation: dash 1.5s ease-in-out infinite;
}
}
}
@keyframes rotate {
100% {
transform: rotate(360deg);
}
}
@keyframes dash {
0% {
stroke-dasharray: 1, 150;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 90, 150;
stroke-dashoffset: -35;
}
100% {
stroke-dasharray: 90, 150;
stroke-dashoffset: -124;
}
}