Skip to content

Instantly share code, notes, and snippets.

@mirisuzanne
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save mirisuzanne/6506e0210990a7d971eb to your computer and use it in GitHub Desktop.

Select an option

Save mirisuzanne/6506e0210990a7d971eb to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<span class="spinner"></span>
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// ----
@import "compass";
@include keyframes(spin) {
from {
background: rgba(rebeccapurple, .5);
}
50% {
background: rgba(rebeccapurple, .75);
}
to {
background: rgba(rebeccapurple, .5);
transform: rotate(1turn);
}
}
.spinner {
@include animation(spin 1s linear infinite both);
background-clip: padding-box;
border: .375rem solid rgba(rebeccapurple, .5);
border-radius: 100%;
border-top-color: rgba(rebeccapurple, .75);
display: inline-block;
height: 1rem;
width: 1rem;
}
@-moz-keyframes spin {
from {
background: rgba(102, 51, 153, 0.5);
}
50% {
background: rgba(102, 51, 153, 0.75);
}
to {
background: rgba(102, 51, 153, 0.5);
transform: rotate(1turn);
}
}
@-webkit-keyframes spin {
from {
background: rgba(102, 51, 153, 0.5);
}
50% {
background: rgba(102, 51, 153, 0.75);
}
to {
background: rgba(102, 51, 153, 0.5);
transform: rotate(1turn);
}
}
@keyframes spin {
from {
background: rgba(102, 51, 153, 0.5);
}
50% {
background: rgba(102, 51, 153, 0.75);
}
to {
background: rgba(102, 51, 153, 0.5);
transform: rotate(1turn);
}
}
.spinner {
-moz-animation: spin 1s linear infinite both;
-webkit-animation: spin 1s linear infinite both;
animation: spin 1s linear infinite both;
background-clip: padding-box;
border: 0.375rem solid rgba(102, 51, 153, 0.5);
border-radius: 100%;
border-top-color: rgba(102, 51, 153, 0.75);
display: inline-block;
height: 1rem;
width: 1rem;
}
<span class="spinner"></span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment