Created
January 16, 2012 07:15
-
-
Save lgarron/1619537 to your computer and use it in GitHub Desktop.
Barber Pole
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
/** | |
* Barber Pole | |
*/ | |
.barber_pole::before { | |
content: "\a0"; | |
float: left; | |
width: 140%; | |
height: 10%; | |
background: #000; | |
border-radius: 20px 20px 0 0; | |
margin-top: -45%; | |
margin-left: -20% | |
} | |
.barber_pole { | |
width: 64px; | |
height: 256px; | |
margin: 2em auto; | |
background-color: gray; | |
border: 5px solid #000; | |
background-image: repeating-linear-gradient(-60deg, | |
white, | |
white 32px, | |
blue 32px, | |
blue 64px, | |
white 64px, | |
white 96px, | |
red 96px, | |
red 128px | |
); | |
animation: scrolling 8s infinite linear; | |
background-size: 257px 256px; | |
} | |
@keyframes scrolling { | |
100% { background-position: 256px 0px;} | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div class="barber_pole"> | |
</div> |
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
{"view":"split","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment