Skip to content

Instantly share code, notes, and snippets.

@hozefaj
Created June 23, 2016 21:34
Show Gist options
  • Save hozefaj/2df1e4374f7fd4e9a5001337bccf0a13 to your computer and use it in GitHub Desktop.
Save hozefaj/2df1e4374f7fd4e9a5001337bccf0a13 to your computer and use it in GitHub Desktop.

Revisions

  1. hozefaj created this gist Jun 23, 2016.
    27 changes: 27 additions & 0 deletions spinner.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    // modifying height & width will cause various shapes to appear

    .spinner {
    animation: spin 0.7s infinite linear;
    border-bottom: 6px solid rgba(0, 0, 0, 0.2);
    border-left: 6px solid rgba(0, 0, 0, 0.2);
    border-radius: 100%;
    border-right: 6px solid rgba(0, 0, 0, 0.2);
    border-top: 6px solid #2180c0;
    content: "";
    height: 100px;
    left: 50%;
    margin: -15px auto auto -15px;
    position: absolute;
    top: 40%;
    width: 100px;
    z-index: 6;
    }

    @keyframes spin {
    from {
    transform: rotate(0deg);
    }
    to {
    transform: rotate(359deg);
    }
    }