Skip to content

Instantly share code, notes, and snippets.

@devxpy
Created December 12, 2018 10:22
Show Gist options
  • Select an option

  • Save devxpy/e97842cc756d3b34d5ff25d1a1386d80 to your computer and use it in GitHub Desktop.

Select an option

Save devxpy/e97842cc756d3b34d5ff25d1a1386d80 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/xidovaf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
dot-wave dot {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
margin-right: 3px;
animation: wave 0.8s linear infinite;
}
dot-wave dot:nth-child(2) {
animation-delay: -0.6s;
}
dot-wave dot:nth-child(3) {
animation-delay: -0.4s;
}
@keyframes wave {0%,60%,100%{transform:initial;}30%{transform:translateY(-90%);}}
.bg-dark-green {
background: green;
}
</style>
</head>
<body>
<dot-wave class=' static-wave'>
<dot class=' bg-dark-green'></dot>
<dot class=' bg-dark-green'></dot>
<dot class=' bg-dark-green'></dot>
</dot-wave>
<script id="jsbin-source-css" type="text/css">dot-wave dot {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
margin-right: 3px;
animation: wave 0.8s linear infinite;
}
dot-wave dot:nth-child(2) {
animation-delay: -0.6s;
}
dot-wave dot:nth-child(3) {
animation-delay: -0.4s;
}
@keyframes wave {0%,60%,100%{transform:initial;}30%{transform:translateY(-90%);}}
.bg-dark-green {
background: green;
}
</script>
</body>
</html>
dot-wave dot {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
margin-right: 3px;
animation: wave 0.8s linear infinite;
}
dot-wave dot:nth-child(2) {
animation-delay: -0.6s;
}
dot-wave dot:nth-child(3) {
animation-delay: -0.4s;
}
@keyframes wave {0%,60%,100%{transform:initial;}30%{transform:translateY(-90%);}}
.bg-dark-green {
background: green;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment