Skip to content

Instantly share code, notes, and snippets.

@theWhiteFox
Created August 14, 2017 12:52
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 theWhiteFox/9e92c31ddf4f1cdc54bee71175d57107 to your computer and use it in GitHub Desktop.
Save theWhiteFox/9e92c31ddf4f1cdc54bee71175d57107 to your computer and use it in GitHub Desktop.
jPJgEa
<div class="marquee">
<p>Test</p>
</div>
.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