Created
September 6, 2018 14:22
-
-
Save kieran23101/6463437e81d6c097b13edabce96a1f9e to your computer and use it in GitHub Desktop.
A quick snippet that add 3 dots simulating a loading element
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <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