Skip to content
animorio
IT
Back to the library

Counter-scale frame

Scroll, Images, TextGSAP, CSS onlyMediumCompressed weight: Demo 7.0 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

Sorrel, a made-up clinic of medical skin care, on warm paper and night blue. Scrolling down, each tall photo opens from one side like a door: the frame goes from 80% to 100% of its width while the photo inside does the opposite, from 120% to 100%, and barely stretches; then it drifts slowly down inside the frame. Beside it a small photo with its caption holds still, and the titles come in word by word. Minimal style. From the opening photos of the Odyssée site, Awwwards Site of the Day on 8/10/2026.

Rebuilt from scratch studying odysseeclinic.com.au by Nightjar: 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>
<!--
  "Counter-scale frame" 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>Sorrel, medical skin care</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/newsreader@5.3.0/opsz.css">
  <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>
  <!-- Sorrel, a made-up clinic of medical skin care, on warm paper and night blue. Scrolling down, each tall photo opens
       from one side like a door (its frame goes from 80% to 100% of its width) while the photo inside goes the other
       way, from 120% to 100%, so it barely stretches; then it drifts down slowly inside its frame. Beside it a small
       photo with its caption holds still for a while, and each title comes in word by word. -->
  <header class="bar">
    <p class="brand" data-in>Sorrel</p>
    <p class="bar__mid" data-in>Medical skin care</p>
    <a class="book" href="#book" data-in><span class="book__dot" aria-hidden="true"></span><span>Book a visit</span></a>
  </header>

  <main>
    <section class="hero">
      <p class="kicker" data-in>Skin, at its own pace</p>
      <h1 class="title" data-words><span class="indent" aria-hidden="true"></span>Quiet care for skin that keeps its own time.</h1>
      <p class="lede" data-in>Evidence-led treatments, a first conversation that is never rushed, and results that look like you on a good day.</p>
      <div class="hint" aria-hidden="true"><span class="hint__line"><span class="hint__run"></span></span><span class="hint__txt">Scroll</span></div>
    </section>

    <section class="feature" data-side="right">
      <div class="side">
        <h2 class="head" data-words><span class="indent" aria-hidden="true"></span>Slow hands, clear plans.</h2>
        <figure class="small">
          <div class="small__img"><img src="asciugamani.webp" width="727" height="1024" alt="Folded white towels with a sprig of rosemary"></div>
          <figcaption>
            <span class="label" data-chars>The welcome</span>
            <span class="rule" aria-hidden="true"></span>
            <span class="cap">Warm linen and rosemary. The first ten minutes are only for listening.</span>
          </figcaption>
        </figure>
      </div>
      <div class="big">
        <div class="frame" data-frame>
          <div class="frame__in" data-inner><img src="siero.webp" width="960" height="1440" alt="A woman with calm, clear skin and a drop of serum on her forehead"></div>
          <span class="shine" aria-hidden="true"></span>
          <span class="chip" data-chip>Serum, two drops</span>
        </div>
      </div>
    </section>

    <section class="feature" data-side="left">
      <div class="big">
        <div class="frame" data-frame>
          <div class="frame__in" data-inner><img src="orchidea.webp" width="960" height="1438" alt="A white orchid, smooth dark stones and sea salt on a grey table"></div>
          <span class="shine" aria-hidden="true"></span>
          <span class="chip" data-chip>Stone, salt, orchid</span>
        </div>
      </div>
      <div class="side">
        <h2 class="head" data-words><span class="indent" aria-hidden="true"></span>Every visit starts with a talk.</h2>
        <figure class="small small--wide">
          <div class="small__img"><img src="sala.webp" width="1024" height="683" alt="A bright treatment room with a padded bed and a small trolley"></div>
          <figcaption>
            <span class="label" data-chars>The room</span>
            <span class="rule" aria-hidden="true"></span>
            <span class="cap">North light from the garden, no music, one chair for whoever came with you.</span>
          </figcaption>
        </figure>
      </div>
    </section>

    <section class="end" id="book">
      <h2 class="end__title" data-words>Begin with a first consultation.</h2>
      <a class="pill" href="#book"><span class="pill__bg" aria-hidden="true"></span><span class="pill__txt">Book a visit</span></a>
      <p class="hours" data-in>Monday to Saturday, nine to six</p>
    </section>
  </main>

  <div class="grain" aria-hidden="true"></div>

  <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/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.

31 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Counter-scale frame” 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 warm paper, Sorrel, a made-up clinic of medical skin care: at the top the name in a serif, «Medical skin care» and «Book a visit» with a clay circle that grows on hover. The big title starts with an indent and arrives word by word: «Quiet care for skin that keeps its own time.», then a sentence and a thin hairline with a short dash running down, «Scroll». Scrolling down the first section arrives: on the left the title «Slow hands, clear plans.» word by word and the small photo of towels with rosemary, which holds still while the page moves, with the label «The welcome» letter by letter, a clay rule that draws itself and the caption. On the right the tall photo of a face with a drop of serum: as it comes in it opens from its left edge like a door, from 80% to 100% of its width, while the photo inside shrinks from 120% to 100% so it never stretches; once open the label «Serum, two drops» slides out of the edge with a small bounce, and the photo drifts slowly down inside the frame. The second section is mirrored: the orchid with the stones opens from the right edge, the small photo of the treatment room sits on the right. At the end «Begin with a first consultation.» word by word, the «Book a visit» pill that swells with a bounce while its word widens, and the hours.

How it works

Two elements, two scales

The frame (overflow hidden, aspect-ratio 701 / 1235) and its content are two different elements for GSAP. The frame starts at scaleX .8, the content at scaleX 1.2, with the same transform-origin: 0% when the frame sits on the right, 100% when it sits on the left. The product is .96 at the start and 1 at the end: the frame opens, the photo barely changes.

The opening scrub

Both tweens go to 1 with ease none and the same ScrollTrigger: the frame as trigger, start «top bottom», end «top center», scrub true. The door is open when the frame reaches the middle of the window.

The drift inside the frame

The content is 125% tall and starts at top -25%: a second tween takes it to yPercent 20 from «top top» to «bottom top», so it moves down by 25% of the frame while the frame leaves at the top. No empty edge ever shows.

Words and letters

Titles are split into words (the indent span stays as it is) and rise 10 px with autoAlpha in 1 s expo.out, .04 s apart, when the title reaches 85% of the window. Labels are split into letters that only fade, .6 s and .04 s apart; then the clay rule draws with scaleX.

Lenis on the ticker

Lenis with a duration of .6, the same as the site: lenis.raf is called by the GSAP ticker and each scroll updates ScrollTrigger, so the scrub and the smooth scroll stay in step.

Values to change

NameFileDefaultWhat it changes
OPEN_FROMscript.js0.8How wide the frame starts, from 0 to 1 (the site uses .8).
COUNTERscript.js1.2How wide the photo inside starts, to undo the frame (the site uses 1.2).
DRIFTscript.js20How far the photo drifts down inside its frame, in % (the site uses 20).
WORD_RISEscript.js10How many px each word of a title rises (the site uses 10).
WORD_TIMEscript.js1Seconds each word takes to settle (the site uses 1).
WORD_GAPscript.js0.04Seconds between one word and the next (the site uses .04).
SMOOTHscript.js0.6Seconds of Lenis smooth scrolling (the site uses .6).

Try them in the Playground

When to use it

For the site of a clinic, a spa, a cosmetics brand, a hotel or a studio: sections with a tall photo and a title, where the photo opens calmly instead of just appearing, and stays crisp because it never stretches.

On phones

The same animation with adapted sizes: the two columns stay side by side, the frame and the small photo are measured on width and height together, the long captions hide and the labels with their rule stay. Each section is at most one screen tall.

With reduced motion

No motion and no smooth scroll: the frames are already open and still, the photos do not drift, words, letters and labels fade in.

Pitfalls

  • The frame and the content need the same transform-origin: with different origins the photo slides sideways as it opens.
  • For the drift the content has to be taller than the frame and moved up (here 125% and top -25%): with yPercent on a photo as tall as the frame an empty edge would show at the top.
  • GSAP writes its transform inline: frame, content and photo are three different elements, and the CSS puts no transform on the ones GSAP moves.
  • Never once: true on a timeline with ScrollTrigger: the one-time entrances are ScrollTrigger.create with onEnter.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Newsreader (font variabile) 5.3.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 7.0 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB.

Testing

Tested on 24 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