Skip to content
animorio
IT
Back to the library

Full stop to comma

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

Scroll inside the preview

A minimal scroll and text animation: a sentence that will not end. A short line is closed by an orange full stop; scrolling down, the full stop squashes slightly and grows a tail, becomes a comma, and the next line writes itself after it, closed by a new full stop. Three times, until the sentence is whole, always in the middle of the page. On arrival the commas nod one after the other and the last full stop settles by a pixel; tap it and it turns into a comma for a moment.

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>
<!--
  "Full stop to comma" 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 full stop that turns into a comma on scroll</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>
  <!-- one sentence that will not end. It starts as a short line closed by an orange full stop; scrolling down, the full
       stop grows a tail and becomes a comma, and the next line writes itself after it, closed by a new full stop.
       Three times, until the sentence is whole. Hover the last full stop and it leans; tap it and it turns into a comma
       for a moment, as if the sentence could still go on -->
  <main class="pagina">
    <section class="corsa" data-corsa aria-label="We make small things, slowly, by hand, and let them go.">
      <div class="palco">
        <p class="marchio">Tallow Studio</p>
        <div class="frase" data-frase aria-hidden="true">
          <p class="riga" data-riga>We make small things</p>
          <p class="riga" data-riga>slowly</p>
          <p class="riga" data-riga>by hand</p>
          <p class="riga" data-riga>and let them go</p>
        </div>
        <p class="scendi" data-scendi>Scroll</p>
      </div>
    </section>
  </main>

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

19 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 “Full stop to comma” 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 empty warm white, with the name of a made-up studio at the top, Tallow Studio, a single line writes itself: ‘We make small things’. The letters rise one after the other from below, each on its own spring, and after the last one an orange full stop drops in, lands a hair too low and settles. At the bottom a small word says Scroll. Scrolling down, the full stop squashes slightly and grows a tail: it becomes a comma, and while the comma turns from orange to black the next line writes itself under it, ‘slowly’, closed by a new orange full stop. Then ‘by hand’, then ‘and let them go’. Every time the sentence rises by half a line, so its middle stays in the middle of the page, and a spring follows it, a little behind the scroll. When the sentence is whole the three commas nod one after the other and the last full stop, the only one still orange, drops a pixel and comes back. With the pointer over the last full stop it swells a little; a click or a tap makes it grow its tail for a moment, as if the sentence could still go on. Scrolling back up the tails go back in and the lines rub themselves out.

How it works

The mark is a drawing

The full stop at the end of every line is not a character but a small SVG sized in em: a circle sitting on the baseline and, under it, the tail of the comma, a stroke with pathLength 1 drawn with stroke-dashoffset. So the full stop and the comma are one thing in two states.

The scroll is a target

How far down the section you are is read from getBoundingClientRect and becomes the target of a spring (stiffness 150, damping 0.78) in GSAP’s ticker: the sentence arrives a little after the scroll and, when you stop, it settles with a small bounce.

One step per comma

The run is split into three equal steps. In the first third of each step the full stop grows its tail and squashes on a sine, then the next line writes itself with a window of five letters moving together, each on the same spring.

The middle in the middle

The lines still to be written are already there, transparent, so the column never changes width; the whole sentence rises half a line for every line written, with a smoothstep, and its middle always stays in the middle of the page.

The nod and the pixel

When the last line is written, a single timeline turns the commas a few degrees one after the other and drops the last full stop by a pixel, on the site’s spring; scrolling back far enough lets it happen again.

Values to change

NameFileDefaultWhat it changes
RISEscript.js0.42How far below its place every letter starts, in em.
WINDOWscript.js5How many letters move at the same time while a line is written.
TAILscript.js0.32Share of each step the full stop takes to grow its tail.
SQUASHscript.js0.14How much the full stop squashes while the tail grows.
STIFFNESSscript.js150How quickly the sentence catches up with the scroll.
DAMPINGscript.js0.781 = no bounce, lower = a small bounce when the scroll stops.
INTROscript.js1.6Seconds the first line takes to write itself.
HOLDscript.js0.6Seconds the comma stays when you tap the last full stop.
SMOOTHscript.js1.1Seconds of the smooth scroll; 0 for the browser’s own.

Try them in the Playground

When to use it

For the manifesto or introduction section of a studio, a craft workshop, a portfolio or a blog: a single sentence that grows longer as you scroll, instead of a block of text.

On phones

The same animation with adapted sizes: the sentence takes its size from the width and the height of the box, and a tap on the last full stop makes it grow its tail again.

With reduced motion

The sentence appears already whole, with the three black commas and the last orange full stop, in a fade; no rising letters, no tails drawing themselves, no smooth scroll.

Pitfalls

  • The lines still to be written must already be there, transparent: added one at a time, the column would change width and the sentence would jump sideways.
  • Do not animate the weight of the letters: it changes their widths and the mark at the end of the line would shake while the line is written.

Libraries

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

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

Testing

Tested on 31 October 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