Created
April 30, 2019 12:44
-
-
Save MrEliptik/6f3266eac0df605d8dfffa1fa6cc906a to your computer and use it in GitHub Desktop.
Someone's writing dots animation
This file contains hidden or 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
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
</head> | |
<body> | |
<p> | |
Someone's writing animation, by <a href="https://codepen.io/clemens/pen/kXZWOK">Clemens</a> | |
</p> | |
<span class="spinme-left"> | |
<div class="spinner"> | |
<div class="bounce1"></div> | |
<div class="bounce2"></div> | |
<div class="bounce3"></div> | |
</div> | |
</span> | |
</body> | |
</html> |
This file contains hidden or 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
.spinme-left { | |
display: inline-block; | |
padding: 15px 20px; | |
font-size: 14px; | |
color: #ccc; | |
border-radius: 30px; | |
line-height: 1.25em; | |
font-weight: 100; | |
opacity: 0.2; | |
} | |
.spinner { | |
margin: 0; | |
/*width: 30px;*/ | |
text-align: center; | |
} | |
.spinner > div { | |
width: 10px; | |
height: 10px; | |
border-radius: 100%; | |
display: inline-block; | |
-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both; | |
animation: sk-bouncedelay 1.4s infinite ease-in-out both; | |
background: rgba(0,0,0,1); | |
} | |
.spinner .bounce1 { | |
-webkit-animation-delay: -0.32s; | |
animation-delay: -0.32s; | |
} | |
.spinner .bounce2 { | |
-webkit-animation-delay: -0.16s; | |
animation-delay: -0.16s; | |
} | |
@-webkit-keyframes sk-bouncedelay { | |
0%, | |
80%, | |
100% { | |
-webkit-transform: scale(0) | |
} | |
40% { | |
-webkit-transform: scale(1.0) | |
} | |
} | |
@keyframes sk-bouncedelay { | |
0%, | |
80%, | |
100% { | |
-webkit-transform: scale(0); | |
transform: scale(0); | |
} | |
40% { | |
-webkit-transform: scale(1.0); | |
transform: scale(1.0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment