Skip to content
animorio
IT
All components

Contacts import loader

Loading, Transitions, TextGSAP, CSS onlyAdvancedCompressed weight: Demo 13 KBGSAP 28 KBFreeDownload the zip

The loader of a contacts CSV import in an invented CRM, Fernwood, on a dark glass card. The file drops into the dashed zone and flies into the head, the raw column names turn into Name, Email, Company and Status, the rows fall in crooked with a few red cells and, under a passing light, each one straightens and springs back into its columns. The duplicate lands on its twin and the two fuse into one row with a small Merged tag, the two rows with a broken email sink to the bottom in amber under «2 need a look», the counter rolls to 1,248 contacts and it closes on Import complete with a tick.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React and Vue tabs hold the same demo as a ready component, which switches its animations off when it leaves the page.

<!doctype html>
<!--
  "Contacts import loader" from Animorio · https://animorio.com
  License: free on your own sites and your clients’ sites, paid work included.
  Not for resale, redistribution, templates or code collections · https://animorio.com/en/license/
-->
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>The contacts import with the rows that fall into place</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage">
    <!-- the contacts import of a CRM, Fernwood. A CSV file drops into the card, the rows fall in crooked with a few red
         cells, a light passes over them and each row springs into its columns, the duplicate lands on its twin and
         the two fuse into one row with a small Merged tag, the two rows with a broken email sink to the bottom in amber
         and the counter rolls to 1,248 contacts. Import complete -->
    <section class="imp" data-card aria-label="Import contacts">
      <span class="imp__beam" data-beam aria-hidden="true"></span>

      <header class="imp__head">
        <span class="imp__mark" aria-hidden="true">
          <svg viewBox="0 0 24 24"><path d="M6 17.5 C6 11 10 6.5 18 6.5 C18 13 14 17.5 6 17.5 Z"/><path d="M6 17.5 L12.5 11"/></svg>
        </span>
        <div class="imp__titles">
          <p class="imp__title">Import contacts</p>
          <p class="imp__file" data-file>
            <svg class="imp__file-icon" data-fileicon viewBox="0 0 14 16" aria-hidden="true"><path d="M2.5 1.5 H8.6 L11.5 4.4 V14.5 H2.5 Z"/><path d="M8.4 1.6 V4.6 H11.4"/></svg>
            <span>contacts_q4.csv</span><span class="imp__dim">&nbsp;·&nbsp;1,312 rows</span>
          </p>
        </div>
        <div class="imp__count" aria-hidden="true">
          <span class="odo" data-odo>
            <span class="odo__col" data-digit="3"><span class="odo__strip"></span></span><span class="odo__comma" data-comma>,</span><span class="odo__col" data-digit="2"><span class="odo__strip"></span></span><span class="odo__col" data-digit="1"><span class="odo__strip"></span></span><span class="odo__col" data-digit="0"><span class="odo__strip"></span></span>
          </span>
          <span class="imp__count-word">contacts</span>
        </div>
      </header>

      <div class="imp__bar" aria-hidden="true"><span class="imp__bar-fill" data-progress></span></div>

      <div class="imp__table" data-table>
        <div class="cols" data-cols aria-hidden="true">
          <span class="cols__cell" data-col data-raw="full_name" data-clean="Name"></span>
          <span class="cols__cell" data-col data-raw="e-mail" data-clean="Email"></span>
          <span class="cols__cell cols__cell--company" data-col data-raw="org" data-clean="Company"></span>
          <span class="cols__cell cols__cell--status" data-col data-raw="type" data-clean="Status"></span>
        </div>

        <div class="rows" data-rows role="list">
          <span class="rows__light" data-light aria-hidden="true"><span class="rows__light-line"></span></span>

          <div class="row" data-row="maya" role="listitem"><div class="row__in">
            <span class="cell" data-cell data-bad><span class="cell__raw">LINDQVIST, MAYA</span><span class="cell__clean cell__clean--name"><span class="cell__name">Maya Lindqvist</span><span class="tag" data-merged><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M2 2.5 C2 6 4 7 6 7 C8 7 10 6 10 2.5"/><path d="M6 7 V10.5"/></svg>Merged</span></span></span>
            <span class="cell cell--email" data-cell><span class="cell__raw">Maya@Northpine.co </span><span class="cell__clean">maya@northpine.co</span></span>
            <span class="cell cell--company" data-cell><span class="cell__raw">northpine inc</span><span class="cell__clean">Northpine</span></span>
            <span class="cell cell--status" data-cell><span class="cell__raw">lead</span><span class="cell__clean"><span class="pill" data-status-a>Lead</span><span class="pill pill--customer" data-status-b>Customer</span></span></span>
          </div></div>

          <div class="row row--dup" data-row="dup" aria-hidden="true"><div class="row__in">
            <span class="cell" data-cell><span class="cell__raw">maya lindqvist</span><span class="cell__clean">Maya Lindqvist</span></span>
            <span class="cell cell--email" data-cell><span class="cell__raw">maya@northpine.co</span><span class="cell__clean">maya@northpine.co</span></span>
            <span class="cell cell--company" data-cell><span class="cell__raw">Northpine</span><span class="cell__clean">Northpine</span></span>
            <span class="cell cell--status" data-cell><span class="cell__raw">CUSTOMER</span><span class="cell__clean"><span class="pill pill--customer">Customer</span></span></span>
          </div></div>

          <div class="row" data-row="theo" role="listitem"><div class="row__in">
            <span class="cell" data-cell><span class="cell__raw">theo okafor</span><span class="cell__clean">Theo Okafor</span></span>
            <span class="cell cell--email" data-cell><span class="cell__raw">THEO@BRIGHTWELL.IO</span><span class="cell__clean">theo@brightwell.io</span></span>
            <span class="cell cell--company" data-cell><span class="cell__raw">Brightwell</span><span class="cell__clean">Brightwell</span></span>
            <span class="cell cell--status" data-cell data-bad><span class="cell__raw">cust.</span><span class="cell__clean"><span class="pill pill--customer">Customer</span></span></span>
          </div></div>

          <div class="row" data-row="ines" data-error role="listitem"><div class="row__in">
            <span class="cell" data-cell><span class="cell__raw">Ines  Duarte</span><span class="cell__clean">Ines Duarte</span></span>
            <span class="cell cell--email" data-cell data-bad data-keep><span class="cell__raw">ines.duarte@</span><span class="cell__clean"><svg class="warn" viewBox="0 0 12 12" aria-hidden="true"><path d="M6 1.6 L10.8 10.2 H1.2 Z"/><path d="M6 5 V7.2"/><path d="M6 8.7 V8.8"/></svg><span class="cell__name">ines.duarte@</span></span></span>
            <span class="cell cell--company" data-cell><span class="cell__raw">solace labs</span><span class="cell__clean">Solace Labs</span></span>
            <span class="cell cell--status" data-cell><span class="cell__raw">Lead</span><span class="cell__clean"><span class="pill">Lead</span></span></span>
          </div></div>

          <div class="row" data-row="jonah" role="listitem"><div class="row__in">
            <span class="cell" data-cell data-bad><span class="cell__raw">WEISS JONAH</span><span class="cell__clean">Jonah Weiss</span></span>
            <span class="cell cell--email" data-cell><span class="cell__raw">jonah@kiln.studio</span><span class="cell__clean">jonah@kiln.studio</span></span>
            <span class="cell cell--company" data-cell><span class="cell__raw">KILN</span><span class="cell__clean">Kiln Studio</span></span>
            <span class="cell cell--status" data-cell><span class="cell__raw">lead</span><span class="cell__clean"><span class="pill">Lead</span></span></span>
          </div></div>

          <div class="row" data-row="priya" role="listitem"><div class="row__in">
            <span class="cell" data-cell><span class="cell__raw">Priya Raman</span><span class="cell__clean">Priya Raman</span></span>
            <span class="cell cell--email" data-cell><span class="cell__raw">priya @orbit.co</span><span class="cell__clean">priya@orbit.co</span></span>
            <span class="cell cell--company" data-cell><span class="cell__raw">orbit freight</span><span class="cell__clean">Orbit Freight</span></span>
            <span class="cell cell--status" data-cell data-bad><span class="cell__raw">prtnr</span><span class="cell__clean"><span class="pill pill--partner">Partner</span></span></span>
          </div></div>

          <div class="row" data-row="leo" data-error role="listitem"><div class="row__in">
            <span class="cell" data-cell><span class="cell__raw">leo brandt</span><span class="cell__clean">Leo Brandt</span></span>
            <span class="cell cell--email" data-cell data-bad data-keep><span class="cell__raw">leo@@harbor.co</span><span class="cell__clean"><svg class="warn" viewBox="0 0 12 12" aria-hidden="true"><path d="M6 1.6 L10.8 10.2 H1.2 Z"/><path d="M6 5 V7.2"/><path d="M6 8.7 V8.8"/></svg><span class="cell__name">leo@@harbor.co</span></span></span>
            <span class="cell cell--company" data-cell><span class="cell__raw">Harbor &amp; Co</span><span class="cell__clean">Harbor &amp; Co</span></span>
            <span class="cell cell--status" data-cell><span class="cell__raw">customer</span><span class="cell__clean"><span class="pill pill--customer">Customer</span></span></span>
          </div></div>

          <div class="row row--note" data-row="note"><div class="row__in">
            <svg class="warn warn--big" viewBox="0 0 12 12" aria-hidden="true"><path d="M6 1.6 L10.8 10.2 H1.2 Z"/><path d="M6 5 V7.2"/><path d="M6 8.7 V8.8"/></svg>
            <span class="note__words">2 need a look</span>
            <button class="note__btn" type="button">Review</button>
          </div></div>
        </div>

        <div class="drop" data-drop aria-hidden="true">
          <svg class="drop__edge" data-dropedge preserveAspectRatio="none"><rect data-droprect x="0.5" y="0.5" rx="14" ry="14"/></svg>
          <div class="drop__words" data-dropwords>
            <svg class="drop__up" viewBox="0 0 20 20"><path d="M10 14.5 V4.5"/><path d="M5.8 8.6 L10 4.4 L14.2 8.6"/><path d="M3.5 15.5 V16.5 H16.5 V15.5"/></svg>
            <span class="drop__title">Drop a CSV file</span>
            <span class="drop__sub">Name, email, company and status</span>
          </div>
          <div class="chip" data-chip>
            <span class="chip__doc">
              <svg viewBox="0 0 28 34"><path class="chip__paper" d="M3 2.5 H18.5 L25 9 V31.5 H3 Z"/><path class="chip__fold" d="M18.3 2.6 V9.2 H24.9"/></svg>
              <span class="chip__ext">CSV</span>
            </span>
            <span class="chip__words"><span class="chip__name">contacts_q4.csv</span><span class="chip__size">312 KB</span></span>
          </div>
        </div>
      </div>

      <footer class="imp__foot">
        <span class="state" aria-hidden="true">
          <svg class="state__icon" viewBox="0 0 20 20">
            <circle class="state__track" cx="10" cy="10" r="7.5"/>
            <circle class="state__arc" data-arc cx="10" cy="10" r="7.5" pathLength="1"/>
            <circle class="state__ring" data-ring cx="10" cy="10" r="7.5" pathLength="1"/>
            <path class="state__tick" data-tick pathLength="1" d="M6.4 10.3 L8.9 12.7 L13.8 7.6"/>
          </svg>
          <span class="state__lines" data-lines>
            <span class="state__line" data-line="drop">Waiting for a file</span>
            <span class="state__line" data-line="read">Reading contacts_q4.csv</span>
            <span class="state__line" data-line="match">Matching columns</span>
            <span class="state__line" data-line="clean">Cleaning 1,312 rows</span>
            <span class="state__line" data-line="merge">Merging 62 duplicates</span>
            <span class="state__line" data-line="check">Checking emails</span>
            <span class="state__line state__line--ok" data-line="done">Import complete</span>
          </span>
        </span>
        <span class="imp__pct" data-pct aria-hidden="true">0%</span>
        <button class="imp__btn" type="button" data-btn>
          <span class="imp__btn-face">View contacts</span>
        </button>
      </footer>
    </section>
    <p class="sr" aria-live="polite" data-live></p>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="script.js"></script>
</body>
</html>

Playground

Change values, colours and text with the controls and watch the animation respond live. Or write in the code yourself. Then download the folder with your changes.

97 values to change

Or ask your AI assistant for it

With the Animorio connector, Claude Code, ChatGPT, Cursor or VS Code take it from here, guide included, and fit it into your project. Paste this request:

Take “Contacts import loader” from Animorio and fit it into my site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a black page sits the Import contacts card of Fernwood, an invented CRM: dark glass with a one pixel edge that catches the light on top, a fine grain, a soft shadow and a light that follows the pointer. In the head the violet mark, the title and on the right the contacts counter on small drums, its zero figures dimmed. Below, the dashed drop zone whose dashes walk slowly. The contacts_q4.csv file flies in from above, the zone lights up violet, the file lands with a small squash and the foot of the card says Reading contacts_q4.csv with a turning arc and the percentage. Then the file flies, shrinking, into its icon in the head, where the name and 1,312 rows appear, and the zone goes. The raw column names, full_name, e-mail, org and type in a typewriter face, flip one after the other into Name, Email, Company and Status with their tick. The seven rows fall in one after the other, crooked: the cells out of their columns, the words as they are in the file (LINDQVIST, MAYA, THEO@BRIGHTWELL.IO, cust.) and a few red cells. A violet light with a white line comes down over the table: each row it touches lights up, straightens and its cells spring back into the columns one pixel past the mark, the raw words turn clean and the red goes, while the counter rolls up to 1,312. Only two broken emails stay red. Maya's duplicate slides onto its twin, the two overlap and fuse into one row that pulses a little, the small Merged tag appears, the status goes from Lead to Customer, the rows below rise to close the gap and the counter rolls back to 1,250. The two rows with the broken email shake, turn amber with a line on the left and sink to the bottom under «2 need a look» with the Review button, and the counter goes to 1,248. Import complete: the ring closes, the tick draws itself with a small jump, a light runs once around the edge of the card and the View contacts button appears. After a few seconds the card fades and the import starts again.

How it works

The rows placed by a variable

The rows all sit in one absolute layer and each is moved by the CSS with translateY(calc(var(--slot) * var(--row))). GSAP animates only --slot, a number of rows, never the row's transform: so the rows can fall, overlap and swap places, and if the window changes height --row (a clamp in vh) puts them back in place on its own, even in the middle of a move. The inner box (.row__in) and the cells have their own GSAP transforms, apart.

A mess that repeats the same

Each cell starts moved by an x, y and rotation taken from a pseudo random generator with a fixed seed (Park-Miller, seed × 16807 modulo 2³¹−1): on every loop the rows fall crooked the same way, and the email cell of a few rows starts almost in the name column. The size of the mess is a share of the row height, so on a phone it never leaves the card.

The passing light and the spring

The light is a layer two rows tall that comes down with the --sweep variable. The moment it touches row i is worked out first: t = start + SWEEP × (i + 1.06) / 9, when its white line crosses the middle of the row. At that moment the row lights up, straightens and its cells go back to zero on back.out, 35 milliseconds apart; the raw typewriter text fades into the clean text, both stacked in the same grid cell.

The counter on drums

Each figure is a column of eleven numbers (0-9 and 0 again) moved by −position em. The units turn with the decimal part of the value, the tens and the rest only in the last unit before the carry: position = figure + clamp((v mod 10ⁿ) − (10ⁿ − 1), 0, 1). It depends only on the value, so the same counter climbs to 1,312 and then rolls back to 1,248 without jumps.

The merge and the rows at the bottom

The duplicate has a higher z-index: it comes down to --slot 0.16, over its twin and a little lower, then to 0 and fades, while the twin gives a small elastic squash. The Merged tag is born with no room (max-width and padding at zero) and opens to its width, so the name stays whole until it is needed. The rows with an error take the is-warn class (amber fill and edge in CSS), shake with x keyframes and go to --slot 5 and 6.

Values to change

NameFileDefaultWhat it changes
SWEEPscript.js2.4The seconds the light takes to pass over the rows.
FALLscript.js0.09The seconds between one falling row and the next.
MESSscript.js1How crooked the rows fall in (0 straight).
BOUNCEscript.js1.5How far the springs pass the mark (1 hardly, 3 a lot).
HOLDscript.js3.2The seconds the finished import waits before it starts again.
LOOPscript.jstrueImport again and again.

Try them in the Playground

When to use it

For importing contacts, customers or products into a CRM, a back office, an app dashboard or an online store: it fills the seconds of the processing and shows what happens to the data (columns matched, rows cleaned, duplicates merged, errors to look at) instead of a mute bar. It works as a model for any loading of a table: the guest list of an event, the bookings of a hotel, the menu of a restaurant.

On phones

The same animation with adapted sizes: the card is 94% of the screen wide, the row height, the type and the gaps are sized on the height too, and below 440 pixels the Company column goes and the Merged tag loses its icon. Everything fits the phone frame.

With reduced motion

Nothing moves or turns: the file fades in and out, the rows appear already straight in their place, the raw words fade into the clean ones, the rows that change place fade out and back in at the new one, the counter changes without rolling, the light passes only as colour, the tick and the button fade in.

Pitfalls

  • With stroke-dashoffset written in the CSS, GSAP tweens on the stroke-dashoffset attribute did not show: the CSS property wins over the attribute and the ring in the foot stayed empty. Now the property (strokeDashoffset) is animated and the CSS gives only the dasharray.
  • The Merged tag hidden with opacity still kept its room and on a phone Maya's name stayed cut for the whole import: now it is born with max-width and padding at zero and opens only when the rows fuse.
  • The email text in an inline-flex cell did not take the ellipsis and was cut in the middle of a letter: plain cells are blocks, and in those with the icon the text sits in a span of its own with text-overflow.
  • Rows moved by pixels worked out at the start ended up out of place when the demo window changed height: the position is a number of rows in a CSS variable, multiplied by the row height in the CSS.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 13 KB; the libraries: GSAP 28 KB.

Testing

Tested on 7 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

Use it in your own projects and in your clients’ projects. Do not resell it or redistribute it as is. GSAP stays under its own Standard license. Full license.

All components