Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading Spinner #13

Open
gaffling opened this issue Oct 9, 2018 · 0 comments
Open

Loading Spinner #13

gaffling opened this issue Oct 9, 2018 · 0 comments

Comments

@gaffling
Copy link

gaffling commented Oct 9, 2018

If you are looking for a pure CSS Loading Spinner that fits to the BareCSS Design you can use this:

      spinner {
        display: inline-block;
        position: relative;
        width: 64px;
        height: 64px;
      }
      spinner s {
        display: inline-block;
        position: absolute;
        width: 13px;
        background: #679;
        animation: spinner 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
      }
      spinner s:nth-child(1) {
        left: 6px; animation-delay: -0.24s;
      }
      spinner s:nth-child(2) {
        left: 26px; animation-delay: -0.12s;
      }
      spinner s:nth-child(3) {
        left: 45px; animation-delay: 0;
      }
      @keyframes spinner {
         0%       { top:  6px; height: 51px; }
        50%, 100% { top: 19px; height: 26px; }
      }

and this you need in the HTML Part:

      <spinner>
        <s></s>
        <s></s>
        <s></s>
      </spinner>

Please Comment what do you think about ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant