Skip to content

Instantly share code, notes, and snippets.

@doochik
Created March 2, 2020 10:15
Show Gist options
  • Save doochik/dd25146c35f21f29cc3af2fe129006cd to your computer and use it in GitHub Desktop.
Save doochik/dd25146c35f21f29cc3af2fe129006cd to your computer and use it in GitHub Desktop.
Untitled
.outer {
width: 100px;
overflow: hidden;
border: 1px solid #000;
}
.inner {
white-space: nowrap;
transform: translate(0, 0);
transition: transform 0.3s;
animation: ad-marquee-wrapper 5s linear infinite;
}
@keyframes ad-marquee-wrapper {
0% {
transform: translate(0, 0);
}
90% {
transform: translate(-50%, 0);
}
100% {
transform: translate(-50%, 0);
}
}
<div class="outer">
<div class="inner">
a1234567890 b1234567890 c1234567890 da1234567890 a1234567890 b1234567890 c1234567890 da1234567890
</div>
</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment