Last active
August 29, 2015 14:21
-
-
Save essmahr/409387a3fd84ddfeb1c9 to your computer and use it in GitHub Desktop.
barberpole
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// you'd better have bourbon.io | |
$barber-color: red; | |
.barberpole { | |
background-size: 30px 30px; | |
@include background-image(linear-gradient( 45deg, $barber-color 25%, transparent 25%, transparent 50%, $barber-color 50%, $barber-color 75%, transparent 75%, transparent)); | |
@include animation(barberpole 1.5s linear infinite); | |
} | |
@include keyframes(barberpole) { | |
from { background-position: 0 0; } | |
to { background-position: 60px 30px; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment