Skip to content

Instantly share code, notes, and snippets.

@CodeMyUI
Created February 13, 2017 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CodeMyUI/922daac52d286542994ce616f95dd7fb to your computer and use it in GitHub Desktop.
Save CodeMyUI/922daac52d286542994ce616f95dd7fb to your computer and use it in GitHub Desktop.
PWyYjV
<p class="text">
Example for Scrolling Pattern
</p>
<!-- Very simple example for an auto scrolling pattern to show someone the css only approach --->
@import url('https://fonts.googleapis.com/css?family=Ruda:900');
html, body {
height: 100%;
margin: 0;
}
body {
background-image: url(//www.toptal.com/designers/subtlepatterns/patterns/symphony.png);
background-position: bottom;
animation: 4s linear 0s infinite bp;
display: flex;
align-items: center;
justify-content: center;
}
.text {
font: 900 18px Ruda;
color: #C08;
background: white;
display: inline-block;
padding: 1rem;
}
@keyframes bp {
from {
background-position: 198px 0;
}
to {
background-position: 0 198px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment