Skip to content

Instantly share code, notes, and snippets.

@ipasa
Created July 28, 2013 19:49
Show Gist options
  • Select an option

  • Save ipasa/6099854 to your computer and use it in GitHub Desktop.

Select an option

Save ipasa/6099854 to your computer and use it in GitHub Desktop.

Revisions

  1. Hasan Hafiz Pasha created this gist Jul 28, 2013.
    30 changes: 30 additions & 0 deletions dabblet.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    /**
    * Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
    * Caveat: Not DRY. The content needs to be repeated in a data- attribute (or directly in the CSS).
    */

    body {
    background: #ccc51c;
    min-height: 100%;
    }

    h1 {
    position: absolute;
    left: 50%;
    margin-left: -1.9em;
    color: hsla(0,0%,100%,.3);
    font: 900 800% Baskerville, 'Palatino Linotype', Palatino, serif;
    }

    @keyframes loading {
    from { max-width: 0; }
    }

    h1:before {
    content: attr(data-content);
    position: absolute;
    overflow: hidden;
    max-width: 4em;
    color: white;
    animation: loading 10s linear;
    }
    1 change: 1 addition & 0 deletions dabblet.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    <h1 data-content="Contad">Contad</h1>
    1 change: 1 addition & 0 deletions dabblet.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    // alert('Hello world!');
    1 change: 1 addition & 0 deletions settings.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    {"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}