Skip to content
animorio
IT
Back to the library

Fund timeline

Text, TransitionsGSAP, CanvasMediumCompressed weight: Demo 11 KBGSAP 28 KBFreeDownload the zip

The ‘Our journey’ section of a private credit fund from Madrid, Cumbre Credit: a white card with a wide window that opens from its middle and plays a film made of four real photographs of Madrid at four hours of one day, the sun over the roofs at dawn, the tower under the morning clouds, the towers in the blue afternoon sky, the night with every window lit, dissolving into each other with a slow push-in and grain. Below, seven years as pills with a puck that slides on a spring. Picking a year runs the film forward or back to its hour, the four red serif digits roll like an odometer with a thread of vertical motion blur and two lines of milestone come in word by word from below.

Rebuilt from scratch studying tresmarescapital.com by Dgrees: the idea is theirs; code, copy and images are ours. Read how it’s made

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>
<!--
  "Fund timeline" 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>Cumbre Credit, our journey</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/full.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/inter-tight@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the "Our journey" block of a made-up private credit fund from Madrid, Cumbre Credit. A wide window opens from
       its middle and plays a film made of four real photographs of
       the city at four hours of one day, from the sun at dawn to the night with every window lit, crossing in a slow
       dissolve. Each of the seven years is a point of that day: picking a year runs the film forward or back
       to it, the four red digits roll like an odometer and two lines of milestone come in word by word. -->
  <main class="stage">
    <section class="journey" data-journey aria-label="Our journey">
      <header class="journey__head">
        <span class="brand">
          <svg class="brand__mark" viewBox="0 0 24 16" aria-hidden="true">
            <path class="brand__peak" d="M1.5 14.5L9 4l3.6 5L15.4 6l7.1 8.5"/>
            <path class="brand__base" d="M1.5 14.5h21"/>
          </svg>
          <span class="brand__name">Cumbre Credit</span>
        </span>
        <span class="journey__label">Our journey</span>
      </header>

      <div class="film" data-film>
        <span class="film__shadow" data-shadow aria-hidden="true"></span>
        <div class="film__clip" data-clip>
          <canvas class="film__canvas" data-canvas aria-hidden="true"></canvas>
          <span class="film__sheen" aria-hidden="true"><span class="film__sheen-band" data-sheen></span></span>
          <span class="film__edge" aria-hidden="true"></span>
          <span class="film__chip" aria-hidden="true">
            <span class="film__city">Madrid</span>
            <span class="film__hour" data-hour>05:54</span>
          </span>
          <span class="film__ruler" aria-hidden="true" data-ruler>
            <span class="film__head" data-playhead></span>
          </span>
        </div>
      </div>

      <div class="journey__row">
        <div class="year" data-year aria-hidden="true">
          <span class="year__inner" data-year-inner></span>
        </div>
        <div class="mile" data-mile>
          <p class="mile__title" data-mile-title></p>
          <p class="mile__line" data-mile-line></p>
        </div>
      </div>

      <nav class="pills" data-pills aria-label="Years">
        <span class="pills__puck" data-puck aria-hidden="true"></span>
      </nav>
    </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.

22 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 “Fund timeline” 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 light grey page a white card with a layered shadow and a one pixel edge. At the top the Cumbre Credit mark, a small red peak on a line, and ‘Our journey’ on the right. The film window opens from its middle: from inset(50%) to inset(20%) in 1.4 seconds expo.out, then it widens to the whole card. Inside is Madrid in four real photographs, one for each hour of the day: the sun rising behind the clouds over the roofs, the television tower and the blocks under the grey morning sky, the four glass towers in the afternoon blue, the same towers at night with the park and the streets lit; each photo slowly moves towards the viewer, with the light of the hour over it, a vignette and grain changing every frame. At the bottom left a frosted glass tag with ‘Madrid’ and the hour of the film, on the right a thin ruler with seven ticks and the red playhead. Under the window 2014 in red serif rolls from 0000 like an odometer, and beside it ‘Cumbre Credit opens in Madrid.’ and the line below come in word by word. At the bottom the row of the seven years, 2014, 2016, 2018, 2020, 2021, 2023 and 2026, with the white puck under the year that is on. Every 3.3 seconds the next year picks itself: the film runs to its hour and, when the new year sits at another hour of the day, the photo dissolves into the next with a warm leak while they cross (dawn for 2014, morning for 2016 and 2018, afternoon for 2020 and 2021, night for 2023 and 2026), the playhead slides, the changing digits roll with a thread of vertical blur and settle passing their mark by two pixels, the old lines leave upwards and the new ones rise from below, a glint crosses the glass and the shadow under the window breathes and takes the colour of the sky. After 2026 the film rewinds to dawn.

How it works

The window opens with clip-path

The window is a single element with clip-path, and everything inside (the canvas, the glint, the tag, the ruler) is cut together. GSAP takes it from ‘inset(50% round 14px)’ to ‘inset(20% round 14px)’ in 1.4 s expo.out, as on the site, then to ‘inset(0% round 14px)’ in 1.2 s expo.inOut. The shadow is a separate blurred element under the window, because an element with clip-path cuts its own shadow too.

Each digit is a column from 0 to 9

Each digit is a window one character tall with overflow hidden; inside, a column with the ten figures placed at top: n × 100%. To show figure n the column goes to yPercent −100 × n in 1.4 s expo.out: the site's own formula. The four columns start 0.035 s apart and at the opening they roll from 0000 to the first year.

Vertical motion blur and the settle

Every frame gsap.getProperty reads how far each column moved and the speed becomes the --mb variable: four red text-shadows above and below the figure, further and stronger the faster it goes, and a touch of scaleY. A separate tween moves the row two pixels past its mark and brings it back with elastic.out.

The film is a function of the hour

The film is not a video: it is four real photographs of Madrid drawn on a canvas that depends on one number, p from 0 to 1. Each year sits at p = i / 7 (the length divided by the years, times the index, like currentTime on the site) and GSAP tweens p in 1.4 s expo.out: so the film runs forward or back. Each photo has its point of the day (2014, 2016, 2020 and 2023) and dissolves into the next during the year before it, with smoothstep: every year stops on a clean photo, never halfway. The arriving photo is drawn over the one that stays full, so the crossing never goes darker.

The photo as a shot

Each photo fits the window like object-fit: cover, with a point to keep (fx, fy) chosen per photo, and slowly pushes in as the day goes on, plus a breath of a few thousandths. Over it lies the light of the hour in soft-light (warm at dawn, cold at night), a warm leak in ‘lighter’ only while two photos cross, a vignette and three tiles of grain swapped in overlay. The shadow under the window takes the colour of the photo that is on.

The puck on a spring

The puck under the years is not a tween: its position and width follow the active button with a spring integrated every frame (stiffness 260, damping 22), and it squashes a little in height while it runs. The pixel sizes are read again on resize.

Values to change

NameFileDefaultWhat it changes
ROLLscript.js1.4Seconds the digits and the film take to reach the new year (expo.out).
DIGIT_STAGGERscript.js0.035Delay between one digit and the next, in seconds.
BLURscript.js1How much vertical motion blur the rolling digits leave (0 none).
SETTLEscript.js2How many pixels the year passes its mark before settling.
OPEN_INSETscript.js20The inset (%) the window opens to first, before widening to the full frame.
GRAINscript.js0.11The film grain (0 none).
STIFFNESSscript.js260The spring of the puck under the years: higher is quicker.
DAMPINGscript.js22Lower lets the puck pass the year and come back.
STEPscript.js3.3Seconds each year stays before the next one picks itself.
LOOPscript.jstrueGo round the years again and again.

Try them in the Playground

When to use it

For the ‘about us’ page of a fund, a bank, a studio or a company with a story told year by year; for the editions of a festival or a fair; for the history of a product in a dashboard. When the dates are few (five to eight), each with a sentence, and the image should change with the year.

On phones

The same animation with adapted sizes: the card takes the width of the screen, the window stays 2.15 times as wide as it is tall but never taller than 42% of the screen, the year is measured on width and height (min(11vw, 12.5vh), at least 40 pixels), the milestone lines wrap beside the year and the seven years share the row in equal parts. The film is drawn with fewer pixels, the photos keep their point (the towers stay in frame) and the grain gets lighter.

With reduced motion

The window is already open and the card fades in. Changing year the film moves to the new hour through a fade instead of running, the digits fade out and back in already right, the milestone lines change with a fade and the puck jumps straight under the year.

Pitfalls

  • clip-path also cuts the box-shadow of the same element: the breathing shadow is a sibling element under the window.
  • GSAP moves the pills at the entrance and its inline transform would cancel the scale(0.94) of :active: it is removed with clearProps at the end of the tween.
  • The photos are drawn on the canvas only once decoded: the demo starts after img.decode() of all four and after the fonts, or the first frame is empty and the poster comes out black.
  • The film never fully stops (grain, push-in): the recorder cannot tell on its own when the round is over, it needs a fixed length.
  • The puck is measured in pixels from offsetLeft and offsetWidth: it is read again on resize, even mid-run, or it stays under the wrong year.
  • Crossing two photos by adding two opacities dips into the dark halfway: the one that stays is drawn full and only the arriving one rises in opacity.

Libraries

GSAP 3.15.0, Fraunces (font variabile) 5.3.0, Inter Tight (font variabile) 5.3.0.

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

Testing

Tested on 9 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 animations