Skip to content

Instantly share code, notes, and snippets.

@epexa
Created September 29, 2023 09:51
Show Gist options
  • Save epexa/f6069eacee17141a3e530ac841fcb4b9 to your computer and use it in GitHub Desktop.
Save epexa/f6069eacee17141a3e530ac841fcb4b9 to your computer and use it in GitHub Desktop.
.marquee {
width: 450px;
margin: 0 auto;
white-space: nowrap;
overflow: hidden;
box-sizing: border-box;
border: 1px dotted #800000;
}
.marquee span {
display: inline-block;
padding-left: 100%;
animation: marquee 15s linear infinite;
}
.marquee span:hover {
animation-play-state: paused
}
@keyframes marquee {
0% { transform: translate(0, 0); }
100% { transform: translate(-100%, 0); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment