Make sure that the spinner is only animated when visible

refs #8369
This commit is contained in:
Johannes Meyer 2015-08-21 09:54:05 +02:00
parent 07b17cc701
commit 7dd3fc6c78

View File

@ -117,11 +117,14 @@ div.spinner {
&.active { &.active {
visibility: visible; visibility: visible;
&:before {
.animate(spin 2s infinite linear);
}
} }
&:before { &:before {
margin: 0; // Disables wobbling margin: 0; // Disables wobbling
.animate(spin 2s infinite linear);
} }
} }
} }