Created
December 18, 2015 20:21
-
-
Save VictorCoding/dec89bbdc6f947df5c6c to your computer and use it in GitHub Desktop.
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
/* | |
Text to display | |
<div class="dot first"></div> | |
<div class="dot second"></div> | |
<div class="dot third"></div> | |
*/ | |
.dot { | |
width: 10px; | |
height: 10px; | |
border-radius: 50%; | |
display: inline-block; | |
background: lightgrey; | |
} | |
.first { | |
animation: 0.5s linear 0s infinite alternate upAndDown; | |
} | |
.second { | |
animation: 0.5s linear 0.2s infinite alternate upAndDown; | |
} | |
.third { | |
animation: 0.5s linear 0.4s infinite alternate upAndDown; | |
} | |
@keyframes upAndDown{ | |
from { | |
transform: translateY(0em); | |
} | |
to { | |
transform: translateY(-0.3em); | |
} | |
} | |
.main-text { | |
/*color: black;*/ | |
font-size: 40px; | |
margin-top: 50%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment