Skip to content

Yet Another CSS 3 Spinner - as if there wouldn't be enough of them.

Notifications You must be signed in to change notification settings

mindrevolution/YACTS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

YACTS

Yet Another CSS 3 Spinner – as if there wouldn't be enough of them.

Spinner Preview (as a GIF)

From mindrevolution. Maintained by Marc Stöcker.

Looking for a lightweight CSS-only indicator?

My co-workers sometimes hit me up with the question for a "simple spinner, CSS only possibly". To safe me some time, I created this tiny repo, so I can just refer them to it. Job done, time saved.

Click here for a working demo page.

Just a few lines for a nice effect!

HTML

<div class="spinner"></div>

CSS (excerpt)

.spinner {
  border: 10px double rgba(255, 204, 0, 0.2);
  border-top: 10px double rgba(255, 204, 0, 0.8);
  border-radius: 100%;

  -webkit-animation: rotation 0.7s infinite linear;
  -moz-animation: rotation 0.7s infinite linear;
  -o-animation: rotation 0.7s infinite linear;
  animation: rotation 0.7s infinite linear;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}
/* see './css/yacts.css' for complete CSS */

As you like: LESS, CSS, minified CSS

It's all in the /css/ directory, though there isn't any use of LESS yet. Probably a good starting point for extending it with i.e. color variables?

Licence

YACTS is released under the MIT license: opensource.org/licenses/MIT

Contributing

This project is open for collaboration. Fork. Push. Innovate.

About

Yet Another CSS 3 Spinner - as if there wouldn't be enough of them.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages