Merge pull request #2971 from alphagov/loading-indicator

Add a loading indicator component
This commit is contained in:
Chris Hill-Scott
2019-05-17 11:18:14 +01:00
committed by GitHub
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
@keyframes ellipsis {
to {
width: 1.25em;
}
}
.loading-indicator {
&:after {
overflow: hidden;
display: inline-block;
vertical-align: bottom;
animation: ellipsis steps(4,end) 1.5s infinite;
content: "\2026"; // ellipsis
width: 0;
position: relative;
left: -0.15em;
}
}