Skip to content

Instantly share code, notes, and snippets.

@webcane
Created March 14, 2014 18:15
Show Gist options
  • Save webcane/9553543 to your computer and use it in GitHub Desktop.
Save webcane/9553543 to your computer and use it in GitHub Desktop.
A Pen by Mikhail Niedre.
<footer id="fence">
<p id="copy">Copyleft</p>
</footer>
body {
background-color: #fff;
}
#fence {
position: absolute;
bottom: 0;
height: 100px;
width: 100%;
text-align: center;
background-color: #111;
}
#copy {
color: #f1f2f3;
margin: 20px 0;
}
/* fence */
#fence:before {
/* Set the footer height here */
display: block;
content: " ";
height: 50px;
margin-top: -25px;
background-position: 50px 0px;
background-size: 50px 100%;
background-image:
linear-gradient(-45deg, #000 50%, transparent 50%)
,
linear-gradient(45deg, #000 50%, transparent 50%);
background-repeat: repeat-x;
animation: animatedBackground 2s linear infinite;
}
@keyframes animatedBackground {
/* webkit bug https://bugs.webkit.org/show_bug.cgi?id=108895 */
from { background-position: 50px 0px; }
to { background-position: 0px 0px; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment