Skip to content
animorio
IT
All components

Story reply sheet

Stories, Transitions, PhysicsGSAP, CSS onlyMediumCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

The story of a pottery studio announcing its glaze night, in the premium style of Dribbble shots: three blurred glaze colours drifting on dark clay, the grain, the gloss, the bar at the top filling up and the seats left rolling from seven to six. Pull it up with a finger and the story follows the hand, sinks back and darkens while a frosted glass bottom sheet rises with three quick replies; pick one and it types itself into the field, the arrow turns ember and, once sent, the reply flies up as a bubble and drops into the studio's avatar, which draws its ring.

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>
<!--
  "Story reply sheet" 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 story with the reply you pull up</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 story of a pottery studio, Ostro, announcing its glaze night. Pull the story up with a finger (or tap the
         reply bar) and it sinks back under a frosted sheet with three quick replies and a field; pick one, send it, and
         the message flies up into the studio's avatar while the story goes on -->
    <div class="wrap" data-wrap>
      <span class="glow" data-glow aria-hidden="true"></span>
      <section class="st" data-story aria-label="Story by ostro.ceramics">
        <div class="st__scene" data-scene>
          <div class="st__img" data-img aria-hidden="true">
            <span class="st__blob st__blob--a" data-blob></span>
            <span class="st__blob st__blob--b" data-blob></span>
            <span class="st__blob st__blob--c" data-blob></span>
            <span class="st__gloss"></span>
            <span class="st__grain"></span>
            <span class="st__shade"></span>
          </div>
          <span class="st__sheen" data-sheen aria-hidden="true"></span>

          <div class="st__bars" aria-hidden="true">
            <span class="st__bar"><span class="st__fill" style="transform:scaleX(1)"></span></span>
            <span class="st__bar"><span class="st__fill" data-fill></span></span>
            <span class="st__bar"><span class="st__fill"></span></span>
          </div>

          <header class="st__head">
            <span class="st__avatar" data-avatar aria-hidden="true">
              <svg class="st__ring" viewBox="0 0 40 40"><circle data-ring cx="20" cy="20" r="18.5" pathLength="1"/></svg>
              <span class="st__face"></span>
            </span>
            <span class="st__who"><b>ostro.ceramics</b><span class="st__when">2h</span></span>
            <span class="st__close" aria-hidden="true">
              <svg viewBox="0 0 16 16"><path d="M4 4l8 8M12 4l-8 8"/></svg>
            </span>
          </header>

          <div class="st__copy" data-copy>
            <p class="st__kicker">Thursday, 7 pm</p>
            <h2 class="st__title">Glaze<br>night</h2>
            <p class="st__line">Dip, pour and layer our new ash glazes. Clay, aprons and tea on us.</p>
            <span class="st__seats">
              <span class="st__roll" data-roll aria-hidden="true"><span>7</span><span>6</span></span>
              <span class="sr" data-seatsr>6</span>
              <span>seats left</span>
            </span>
          </div>

          <span class="st__dim" data-dim aria-hidden="true"></span>

          <div class="st__foot" data-foot>
            <span class="st__hint" data-hint aria-hidden="true">
              <svg viewBox="0 0 16 10"><path d="M2 8l6-5 6 5"/></svg>
              <span>Reply</span>
            </span>
            <button class="st__bar-reply" type="button" data-open>
              <span class="st__ph" data-ph>Reply to ostro.ceramics</span>
              <span class="st__sent" data-sent>
                <svg viewBox="0 0 16 16" aria-hidden="true"><path data-tick pathLength="1" d="M3.5 8.4l3 3 6-6.6"/></svg>
                <span>Sent to ostro.ceramics</span>
              </span>
            </button>
          </div>
        </div>

        <div class="st__sheet" data-sheet role="dialog" aria-label="Reply" aria-hidden="true">
          <span class="st__grip" data-grip aria-hidden="true"></span>
          <p class="st__sheet-title">Quick replies</p>
          <div class="st__chips">
            <button class="st__chip" type="button" data-chip tabindex="-1">Save me a seat</button>
            <button class="st__chip" type="button" data-chip tabindex="-1">Can I bring a friend?</button>
            <button class="st__chip" type="button" data-chip tabindex="-1">Is the clay included?</button>
          </div>
          <form class="st__field" data-form>
            <input class="st__input" data-input type="text" placeholder="Message" aria-label="Message" autocomplete="off" tabindex="-1">
            <button class="st__send" type="submit" data-send aria-label="Send" tabindex="-1" disabled>
              <span class="st__send-face" data-sendface>
                <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 13V3.6M3.8 7.6L8 3.4l4.2 4.2"/></svg>
              </span>
            </button>
          </form>
        </div>

        <span class="st__bubble" data-bubble aria-hidden="true"></span>
        <span class="st__edge" aria-hidden="true"></span>
      </section>
    </div>
    <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.

34 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 “Story reply sheet” 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 near black floor, which catches a little of its light, stands an upright story with round corners and a one pixel edge: the pottery studio ostro.ceramics announces «Glaze night», Thursday at seven, with a line about glazes, clay and tea and a glass pill with the seats left. Behind, three blurred patches of glaze (ember, cobalt and cream) drift slowly over dark clay, with the grain and a slanting gloss; at the top three bars, the second filling up; at the bottom, «Reply» with its swaying arrow and the bar «Reply to ostro.ceramics». Just after it enters, the seven of the seats rolls away and the six arrives. Taking the story with a finger and pulling it up, the story follows the hand, shrinks and darkens, and from below rises a frosted glass sheet with its handle, «Quick replies» and three replies («Save me a seat», «Can I bring a friend?», «Is the clay included?») that come in one after another on a spring, then the «Message» field with the round send button. Let go past a third and the sheet opens fully, before that it falls back; pulled past the top it stretches a touch. The bar at the top stops while the sheet is open. Picking a reply it lights up in ember, squashes and comes back, and the text types itself into the field; the round button turns ember. Sending, the button squashes, the message leaves the field as an ember bubble, rises over the story getting smaller and drops into the studio's avatar, which draws its ring and gives a small jolt; meanwhile the sheet goes down, the story starts again and the bottom bar says «Sent to ostro.ceramics» with a tick drawing itself, then goes back as it was.

How it works

One size for everything

The story is a 9 by 16 box min(86vh, 600px, 160vw) tall with container-type: size: the sizes inside are in cqw and cqh, with clamp for the type, so the same story fits the phone box and grows on a computer with no recalculation.

One number for how open it is

Everything depends on an object P with v from 0 to 1: render() takes the scene to scale 1 - (1 - SINK) v and a little up, the sheet from yPercent 101 to 0, the black veil, the bottom bar and the light on the floor. The finger writes v directly (the distance over the sheet's height), GSAP animates it to open and close: the same function serves the gesture and the autopilot.

The gesture with its speed

On pointerdown the point and the state are noted; after six pixels the drag captures the pointer and pauses the bar at the top. The speed is a moving average of the last moves: letting go, a quick flick opens or closes even after a short pull, otherwise the threshold decides; past the top v grows at a fifth and the sheet stretches from the bottom.

The reply that types and flies

A quick reply types itself with a tween on a letter counter. On send, a bubble is laid exactly on the field (measured with getBoundingClientRect against the story), rises a little, then x and y go to the avatar on two different curves (power2.inOut and power3.in) so the flight makes an arc; once there, the avatar's ring draws itself with stroke-dashoffset on pathLength 1.

The seats that roll

The seat count is a column of two figures in a window one line tall: GSAP takes it to yPercent -100 with a back.out. While the sheet covers the story the column quietly goes back to seven, so on closing the six rolls in again.

Values to change

NameFileDefaultWhat it changes
STORYscript.js7How many seconds one story lasts: the bar at the top fills in this time.
SINKscript.js0.9How small the story gets with the sheet open: 1 does not move.
THRESHOLDscript.js0.3How far you have to pull, as a share of the sheet, for it to open.
SPRINGscript.js1How springy the movement is: 0.4 calm, 2 very bouncy.
TYPE_SPEEDscript.js28How many letters per second a quick reply types.
HOLDscript.js1.8How many seconds the bottom bar says Sent.
DRIFTscript.js1How much the glaze colours drift in the picture: 0 still.
AUTOscript.jstrueGoes round by itself until someone touches it.

Try them in the Playground

When to use it

For the app or web app of a social network, a community or a brand that posts stories: the reply to a story from a workshop, a venue or an event, with quick replies ready. Also as a model for any bottom sheet you pull up with a finger over content that sinks back.

On phones

It is made for the finger: the same animation with sizes taken from the story's height, which fits whole in the box. The gesture is the same, the light that follows the pointer stays still until you touch.

With reduced motion

Nothing moves: the glaze colours stay still, the seats are already six, the sheet fades in and out when you tap the reply bar, the chosen reply appears whole in the field and, once sent, the bubble fades and the bar says Sent with a fade.

Pitfalls

  • The gesture also starts from the reply bar, which is a button: after a drag the click that follows has to be stopped in the capture phase, otherwise the story would open twice.
  • The sheet must never spring past its edge: the story would show underneath. That is why the bounce lives in the scene and in the replies coming in, while the sheet pulled past the top stretches from the bottom with scaleY.
  • The bubble has to be measured when sending, not at start: the story changes size on resize and the sheet is moving.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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