Preview
HTML
<p><span>Quiet type · Live tokens · No script · Quiet type · Live tokens · No script · </span></p>
CSS
:root {
--ink: #241c16;
--paper: #fffaf1;
--accent: #d4552b;
--accent-2: #4338ca;
--on-accent: #fff;
--muted: #6a6156;
--line: #d7ccb8;
--chip: #efe6d6;
}
p {
max-width: 16rem;
margin: 0;
overflow: hidden;
color: var(--ink);
font-weight: 750;
}
span {
display: inline-block;
padding-inline-end: 2rem;
white-space: nowrap;
animation: drift 8s linear infinite;
}
@keyframes drift {
to { transform: translateX(-50%); }
}
Tailwind
<style>
:root {
--ink: #241c16;
--paper: #fffaf1;
--accent: #d4552b;
--accent-2: #4338ca;
--on-accent: #fff;
--muted: #6a6156;
--line: #d7ccb8;
--chip: #efe6d6;
}
span {
animation: drift 8s linear infinite;
}
@keyframes drift {
to { transform: translateX(-50%); }
}
</style>
<p class="max-w-[16rem] m-0 overflow-hidden text-[var(--ink)] font-[750]"><span class="inline-block [padding-inline-end:2rem] [white-space:nowrap]">Quiet type · Live tokens · No script · Quiet type · Live tokens · No script · </span></p>