Skip to content

Instantly share code, notes, and snippets.

@kieran23101
Created September 6, 2018 14:22
Show Gist options
  • Save kieran23101/6463437e81d6c097b13edabce96a1f9e to your computer and use it in GitHub Desktop.
Save kieran23101/6463437e81d6c097b13edabce96a1f9e to your computer and use it in GitHub Desktop.
A quick snippet that add 3 dots simulating a loading element
// <p>Loading</p>
p::after {
content: '';
position: absolute;
animation: dots 1s linear infinite;
}
@keyframes dots {
25% {
content: '.';
}
50% {
content: '..';
}
75% {
content: '...';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment