Skip to content

Animated Draw-In

A copy-paste timelines component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

TimelinesHTMLCSSany framework
1
Start
2
Mid
3
End

Copy into your project

HTML
<div class="nuda-tl-draw">
  <div class="nuda-tl-draw__line"></div>
  <div class="nuda-tl-draw__node" style="animation-delay:0s">
    <div class="nuda-tl-draw__circle">1</div>
    <span class="nuda-tl-draw__lbl">Start</span>
  </div>
  <div class="nuda-tl-draw__node" style="animation-delay:0.2s">
    <div class="nuda-tl-draw__circle">2</div>
    <span class="nuda-tl-draw__lbl">Mid</span>
  </div>
  <div class="nuda-tl-draw__node" style="animation-delay:0.4s">
    <div class="nuda-tl-draw__circle">3</div>
    <span class="nuda-tl-draw__lbl">End</span>
  </div>
</div>
CSS
.nuda-tl-draw {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 220px;
  padding-top: 4px;
}

.nuda-tl-draw__line {
  position: absolute;
  top: 15px;
  left: 20px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,#e4ff54,#6366f1);
  animation: _nuda-tldrawline 1.2s ease-out forwards .1s;
}

.nuda-tl-draw__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: _nuda-tldrawnode .4s ease-out forwards;
}

.nuda-tl-draw__circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 2px solid #e4ff54;
  color: #e4ff54;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nuda-tl-draw__lbl {
  font-size: 10px;
  color: #777;
}

@keyframes _nuda-tldrawline {
  from {
    width: 0;
  }
  to {
    width: calc(100% - 40px);
  }
}

@keyframes _nuda-tldrawnode {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-tl-draw__line {
    animation: none;
    width: calc(100% - 40px);
  }
  .nuda-tl-draw__node {
    animation: none;
    opacity: 1;
  }
}

How to use Animated Draw-In

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More timelines components

← Browse all NudaUI components