A Pen by Thomas Bormans on CodePen.
Created
August 14, 2017 12:52
-
-
Save theWhiteFox/9e92c31ddf4f1cdc54bee71175d57107 to your computer and use it in GitHub Desktop.
jPJgEa
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
<div class="marquee"> | |
<p>Test</p> | |
</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
.marquee { | |
width: 450px; | |
height: 450px; | |
text-align: center; | |
background-color: red; | |
color: white; | |
white-space: nowrap; | |
overflow: hidden; | |
box-sizing: border-box; | |
} | |
.marquee p { | |
display: inline-block; | |
padding-top: 100%; | |
animation: marquee 2s linear infinite; | |
} | |
@keyframes marquee { | |
0% { transform: translate(0, 0); } | |
100% { transform: translate(0, -100%); } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment