Created
September 29, 2023 09:51
-
-
Save epexa/f6069eacee17141a3e530ac841fcb4b9 to your computer and use it in GitHub Desktop.
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; | |
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