Skip to content

Instantly share code, notes, and snippets.

@7dir
Created February 1, 2017 20:08
Show Gist options
  • Save 7dir/929a021b9f38f22f8f8b226e2f845969 to your computer and use it in GitHub Desktop.
Save 7dir/929a021b9f38f22f8f8b226e2f845969 to your computer and use it in GitHub Desktop.

Revisions

  1. 7dir created this gist Feb 1, 2017.
    50 changes: 50 additions & 0 deletions bouncy-animated-loading-animation.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,50 @@
    .loader {
    text-align: center;
    }
    .loader span {
    display: inline-block;
    vertical-align: middle;
    width: 10px;
    height: 10px;
    margin: 50px auto;
    background: black;
    border-radius: 50px;
    -webkit-animation: loader 0.9s infinite alternate;
    -moz-animation: loader 0.9s infinite alternate;
    }
    .loader span:nth-of-type(2) {
    -webkit-animation-delay: 0.3s;
    -moz-animation-delay: 0.3s;
    }
    .loader span:nth-of-type(3) {
    -webkit-animation-delay: 0.6s;
    -moz-animation-delay: 0.6s;
    }
    @-webkit-keyframes loader {
    0% {
    width: 10px;
    height: 10px;
    opacity: 0.9;
    -webkit-transform: translateY(0);
    }
    100% {
    width: 24px;
    height: 24px;
    opacity: 0.1;
    -webkit-transform: translateY(-21px);
    }
    }
    @-moz-keyframes loader {
    0% {
    width: 10px;
    height: 10px;
    opacity: 0.9;
    -moz-transform: translateY(0);
    }
    100% {
    width: 24px;
    height: 24px;
    opacity: 0.1;
    -moz-transform: translateY(-21px);
    }
    }
    5 changes: 5 additions & 0 deletions bouncy-animated-loading-animation.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    <div class="loader">
    <span></span>
    <span></span>
    <span></span>
    </div>