Skip to content

Instantly share code, notes, and snippets.

Created February 17, 2014 22:32
Show Gist options
  • Save anonymous/9060562 to your computer and use it in GitHub Desktop.
Save anonymous/9060562 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Feb 17, 2014.
    7 changes: 7 additions & 0 deletions An-Anonymous-Pen.markdown
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    An Anonymous Pen
    ----------------
    This is just a simple loading animation made of 10 p tags. I call it "Pulse"

    A [Pen](http://codepen.io/anon/pen/Iqpjm) by [A Non Ymous](http://codepen.io/anon) on [CodePen](http://codepen.io/).

    [License](http://codepen.io/anon/pen/Iqpjm/license).
    3 changes: 3 additions & 0 deletions index.haml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #loading
    - (1..10).each do
    %p
    33 changes: 33 additions & 0 deletions style.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    body{
    text-align:center;
    background:#34aadc;
    }

    #loading{
    width:200px;
    height:100px;
    margin:100px auto;
    }

    p{
    height:80px;
    width:6px;
    background:#fff;
    display:inline-block;
    animation:loader 1.3s infinite;
    }

    @keyframes loader{
    50% { height:6px; margin-top:74px; opacity:.1; }
    }

    p:nth-child(1) {animation-delay:.1s;}
    p:nth-child(2) {animation-delay:.2s;}
    p:nth-child(3) {animation-delay:.3s;}
    p:nth-child(4) {animation-delay:.4s;}
    p:nth-child(5) {animation-delay:.5s;}
    p:nth-child(6) {animation-delay:.6s;}
    p:nth-child(7) {animation-delay:.7s;}
    p:nth-child(8) {animation-delay:.8s;}
    p:nth-child(9) {animation-delay:.9s;}
    p:nth-child(10){animation-delay:1s;}