
Logo loader
Transitions, SVG, Text
The «Read more» of an article excerpt, minimal style: three lines fading into the paper and a black pill. On click the text opens on a measured spring, the hidden words rise one after another out of a light blur, the reading time rolls from 2 to 6 minutes and the pill becomes «Show less» as its arrow turns over.
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>
<!--
"Read more expander" 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>Read more</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>
<main class="stage">
<!-- the excerpt of a made-up journal, Lowtide: three lines that fade into the paper, a Read more pill that opens
the rest with a measured spring, the hidden words rising one by one and the reading time rolling -->
<article class="post" data-post aria-labelledby="post-title">
<p class="kicker">Field notes</p>
<h1 class="title" id="post-title">The quiet hour before the market opens</h1>
<div class="meta">
<span class="avatar" aria-hidden="true">IO</span>
<span class="meta__who">Ines Okafor</span>
<span class="meta__sep" aria-hidden="true"></span>
<span class="meta__time"><span class="roll" data-roll aria-hidden="true"><span class="roll__cifra">2</span></span><span class="meta__unit">min read</span></span>
<span class="sr" data-time-sr>2 min read</span>
</div>
<span class="rule" data-rule aria-hidden="true"></span>
<div class="body" data-body id="post-body">
<div class="body__inner" data-inner>
<p>At five the stalls are bare frames, and the square belongs to the people who sweep it. Crates arrive stacked like bricks, and someone whistles while the awnings go up.</p>
<p>The fishmonger lays ice first, until the counter looks like a winter field. The bread cools under linen.</p>
<p>Nobody hurries. That is the hour I keep returning to.</p>
</div>
<span class="fade" data-fade aria-hidden="true"></span>
</div>
<button class="pill" type="button" data-pill aria-expanded="false" aria-controls="post-body">
<span class="pill__bg" data-pill-bg aria-hidden="true"></span>
<span class="pill__labels" data-labels>
<span class="pill__label" data-label="more">Read more</span>
<span class="pill__label" data-label="less">Show less</span>
</span>
<svg class="pill__arrow" data-arrow viewBox="0 0 16 16" aria-hidden="true"><path d="M4 6.2l4 4 4-4"></path></svg>
</button>
</article>
<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>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.
26 values to change
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
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 “Read more expander” from Animorio and fit it into my siteThe script splits the paragraphs into words, each in an inline-block span, and keeps the spaces as plain text: the lines wrap exactly as before. To know which words are hidden it reads each one’s offsetTop: the ones below the visible lines are grouped by line.
The body is clamped to LINES_SHOWN times the line height read from the CSS. Opening, the height goes to the real height of the text with back.out(OVERSHOOT); the fade at the bottom goes out. On resize and when the fonts arrive both heights are measured again, even mid-animation.
The hidden words start 10 pixels lower, transparent and blurred by BLUR pixels, and arrive one after another: WORD_STAGGER between one word and the next, plus LINE_STAGGER on every new line.
The two labels sit one above the other in a window one line tall: one slides away, the other arrives from below, and the width follows the measured width of the new word with a small spring. The arrow, which is the whole svg, turns 180 degrees with transformOrigin 50% 50%. The minutes are a digit rolling in a window one line tall.
For the preview the pill presses itself: it opens, stays open for READ_PAUSE seconds, closes. The first real touch or key stops the tour.
| Name | File | Default | What it changes |
|---|---|---|---|
LINES_SHOWN | script.js | 3 | How many lines show before Read more. |
OPEN_TIME | script.js | 0.9 | How long the opening takes, in seconds; closing is a little quicker. |
OVERSHOOT | script.js | 1.15 | How far the spring goes past the right height (0 = no bounce). |
WORD_STAGGER | script.js | 0.012 | The delay between one word and the next, in seconds. |
LINE_STAGGER | script.js | 0.05 | The extra delay on every new line, in seconds. |
BLUR | script.js | 4 | The blur the words come out of, in pixels. |
READ_PAUSE | script.js | 3.6 | In the tour, how long it stays open before closing, in seconds. |
MINUTES_OPEN | script.js | 6 | The reading time with the article open, in minutes. |
In the excerpts of a blog or a magazine, in article previews in a list, in long product or event descriptions, in reviews: wherever the text is long but the first glance has to stay short.
The column takes the width with a margin; headline, text and pill also follow the height with clamp and vh, so the open text fits the box. A tap is the click; there is no hover.
No spring, no rising words and no rolling digits: the height jumps to the new size, the hidden words fade in, the labels crossfade and the arrow is already turned.
GSAP 3.15.0, Newsreader (font variabile) 5.3.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 6.0 KB; the libraries: GSAP 28 KB.
Tested on 23 November 2026
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.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.