Skip to content
animorio
IT
Back to the library

Two-colour split words

Scroll, Text, ImagesGSAP, CSS onlyMediumCompressed weight: Demo 8.7 KBGSAP + ScrollTrigger + CustomEase 49 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

A scroll animation for the section of a fund that invests in climate tech, Ignite Fund: one tall frame of real material and four words around it, three on the left and ‘Power’ on the right. The words are written twice, dark on the page and light inside the frame, which clips them: the edge of the image splits every word in two colours. As you scroll the column climbs one line per word on a long spring and a new material grows in over the last one, from 1 to 1.1: three real photos: the glass of a solar panel with the sun low on it, the steel of the hydrogen cylinders, the glowing volcanic rock of the earth's heat, each with the frosted tag of its startup catching the light.

Rebuilt from scratch studying breakthroughenergy.org by Resn: 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>
<!--
  "Two-colour split words" 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>Ignite Fund, what we back</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/inter-tight@5.3.0/index.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the thesis section of a made-up climate fund, Ignite Fund. A sticky stage with one tall frame of material: the
       solar glass of a panel, the steel of hydrogen cylinders, the glowing rock of a geothermal field, all real photos. The same words are written
       twice: dark on the page, and light inside the frame, which clips them. As you scroll the left column climbs one
       line per word and a new material grows in over the last, so the frame's edge cuts every word in two colours -->
  <section class="corsa" data-corsa>
    <div class="palco" data-palco>
      <header class="testa">
        <span class="marchio"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 1.5c.6 2.6 3.9 4.1 3.9 7.6A3.9 3.9 0 0 1 8 13a3.9 3.9 0 0 1-3.9-3.9c0-1.6.8-2.7 1.7-3.6.2 1.3.9 2 1.6 2.3C7 5.9 7.3 3.6 8 1.5Z"/></svg>Ignite Fund</span>
        <span class="testa-destra">What we back, 2026</span>
      </header>

      <div class="quadro" data-quadro>
        <span class="linea" aria-hidden="true"></span>
        <svg class="croce croce-a" viewBox="0 0 12 12" aria-hidden="true"><path d="M6 0v12M0 6h12"/></svg>
        <svg class="croce croce-b" viewBox="0 0 12 12" aria-hidden="true"><path d="M6 0v12M0 6h12"/></svg>

        <!-- the dark copy, on the page -->
        <div class="parole fuori" data-fuori aria-hidden="true"></div>

        <!-- the frame: the materials, their tags, and the light copy clipped by the frame -->
        <div class="finestra" data-finestra>
          <div class="materiali" data-materiali></div>
          <div class="etichette" data-etichette></div>
          <div class="parole dentro" data-dentro aria-hidden="true"></div>
          <span class="bordo" aria-hidden="true"></span>
        </div>
        <h1 class="sr" data-frase>Abundant, storable, steady power.</h1>
      </div>

      <ol class="binario" data-binario aria-label="The three technologies"></ol>
      <p class="nota">Ignite Fund and the companies on this page are made up.</p>
    </div>
  </section>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/ScrollTrigger.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/CustomEase.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/lenis@1.3.26/dist/lenis.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.

18 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 “Two-colour split words” 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 cream page with a veil of grain, at the top the ‘Ignite Fund’ mark with its orange flame and ‘What we back, 2026’. In the middle a frame 65 by 58.4, with two thin crosses at opposite corners and a hairline crossing the page at the midline. Inside is the photo of a solar panel's glass seen at an angle: midnight blue cells, silver busbars, the aluminium frames between the panels and the low sun warming them orange from one corner; a reflection slides slowly as you scroll. At the bottom left a frosted glass tag: ‘Lumen Array’, ‘Series A’, ‘Tandem solar glass’, ‘29.4 % module efficiency’. Scrolling, ‘Power’ rises on the right, orange inside the frame and black outside; ‘Abundant’ rises on the left, light in the frame and black on the page, with the image's edge cutting it in the middle of a letter. Each word arrives with a jolt and then brakes for a long time. At the second the column climbs one line, ‘Storable’ takes its place on the midline and over the glass grows the photo of the steel hydrogen cylinders, tall and shiny side by side, with the bands of their joints and a sheen running across them; the Vessel H2 tag rises, a light runs across it, its top edge lights up and the figure reaches 700. At the third, ‘Steady’ and the photo of volcanic rock at night, black and cracked with glowing veins, heat rising from it, and the Deepwell tag, ‘210 °C at 4.2 km’. Under the frame three names (Solar glass, Hydrogen, Geothermal) with a line that fills. Scrolling back undoes it all.

How it works

The words written twice

The same two columns sit twice in the same place: a dark one on the page, under the frame, and a light one inside the frame, which has overflow: clip. The frame is a size container (container-type: size) and every measure of the words is in cqw: 15.2cqw type, left column at −23.2cqw, right one at −26.5cqw, both resting on 50cqh − 3px. So the two copies line up at every width and the frame's edge cuts every word in two colours.

The column climbs one line with a variable

The column is moved --k lines below the midline (translateY of --k times 1.09em). GSAP moves --k on both copies with the same tween, from 3 to 0, one line at a time, and lights the new word at the same instant. No pixel sizes: nothing to work out again on resize.

The site's two curves

For the words the CustomEase ‘M0,0 C0,0.023 0,0.229 0,0.248 0,0.699 0.493,1 1,1’: it covers a quarter of the way at once and then brakes for a long time, like a taut spring. For the images ‘M0,0 C0.36,0.521 0.624,1 1,1’, a soft ease out: the new image appears in 0.1 and grows from 1 to 1.1 in 0.95. The words start at 0.01, 1.5 and 2.5, ‘Power’ at 0.2.

Scroll drives the timeline

The timeline is paused and ScrollTrigger moves it back and forth with the pinned stage: 3.45 seconds of timeline over 1.9 screen heights, as on the site, plus some air before and after. Lenis smooths the wheel with the site's 0.8 duration and expo curve.

Three real photos under the words

Each material is a real CC0 photo in webp (solar glass, steel cylinders, glowing rock) inside a layer that GSAP fades in and scales from 1 to 1.1; the photo fills the frame with object-fit: cover and an object-position chosen for each, and a light vignette in ::after darkens its edges so the light words read even on the brightest spot. Nothing to redraw on resize: ScrollTrigger.refresh() is enough.

Values to change

NameFileDefaultWhat it changes
WORDSscript.js'Abundant, Storable, Steady'The three words of the left column, separated by commas.
LASTscript.js'Power'The word on the right, the orange one inside the frame.
WORD_SIZEscript.js15.2How big the words are, in hundredths of the frame's width.
ZOOMscript.js1.1How much each new image grows while it comes in.
STEPscript.js0.95How long each climb of the column lasts, in seconds of the timeline.
RIDEscript.js1How much scroll the section takes: 2 is twice as long.
SMOOTHscript.js0.8Seconds the smooth scroll takes to catch up with the wheel.
SHEENscript.js1How bright the light running over the tags is (0 none).

Try them in the Playground

When to use it

For the values or thesis section of a fund, an energy startup or a brand of technical products: when three or four words must stay on the page while the images of the products or projects change behind them, and text and photo should feel like one piece.

On phones

The same animation with adapted sizes: the frame narrows until the words fit on both sides (page width minus 40 pixels, divided by 1.53), the words are always 15.2 % of its width, the tags and the names below get smaller; the stage is as tall as the screen and you scroll with your finger.

With reduced motion

The four words already sit still in place, split in two colours by the edge; as you scroll the materials only cross-fade, without growing, and the tags and the line below move to the new material with a fade, the figures already reached.

Pitfalls

  • The two copies line up only if every measure of the words depends on the same container: container-type: size on the outer frame, not on the clipping window, and no different padding between the two.
  • GSAP does not interpolate colours written as var(--ink): on the names under the frame only the opacity moves.
  • The photos must be dark or darkened: the words inside the frame are light, and on the panel's low sun they would vanish without the vignette in ::after. And the photo must be at least as tall as the frame, or at 1.1 zoom the pixels show.
  • The dark copy must sit under the window: above it, it would show inside the image too.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, CustomEase 3.15.0, Lenis 1.3.26, Inter Tight (font variabile) 5.3.0, Geist Mono (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 8.7 KB; the libraries: GSAP + ScrollTrigger + CustomEase 49 KB, Lenis 5.3 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 animations