A Pen by Nils Riedemann on CodePen.
Created
February 13, 2017 22:59
-
-
Save CodeMyUI/922daac52d286542994ce616f95dd7fb to your computer and use it in GitHub Desktop.
PWyYjV
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
<p class="text"> | |
Example for Scrolling Pattern | |
</p> | |
<!-- Very simple example for an auto scrolling pattern to show someone the css only approach ---> |
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
@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