Skip to content
animorio
IT
Back to the library

Article transition

Transitions, HoverGSAP, CSS onlyMediumCompressed weight: Demo 12 KBGSAP 28 KBFreeDownload the zip

The move from the list of posts to the open post on Slow Signal, the made-up personal blog of a writer on calm software, in the premium style of the interface pieces, inside a clean browser window: the chosen row becomes the page, the title flies to its place and grows, the date and the reading time settle into the meta line, the drawn cover opens out of the thumbnail and the other rows step away one after the other; then the text comes in line by line. Back puts everything where it was.

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>
<!--
  "Article transition" 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>Slow Signal, from the list of posts to the open post</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/opsz.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage">
    <!-- the personal blog of a made-up writer, Slow Signal, inside a clean browser window. Pick a post: its row becomes
         the page, the title flies to its place and grows, the date and the reading time settle into the meta line, the
         drawn cover opens out of the small tile, the other rows step away one after the other, then the text comes in
         line by line. Back puts everything where it was -->
    <section class="win" data-win aria-label="Slow Signal blog">
      <span class="win__sheen" aria-hidden="true"></span>
      <div class="chrome">
        <span class="chrome__nav" aria-hidden="true">
          <svg viewBox="0 0 16 16"><path d="M9.8 3.6 5.4 8l4.4 4.4"></path></svg>
          <svg viewBox="0 0 16 16"><path d="M6.2 3.6 10.6 8l-4.4 4.4"></path></svg>
        </span>
        <span class="url">
          <svg class="url__lock" viewBox="0 0 16 16" aria-hidden="true"><rect x="3.6" y="7" width="8.8" height="6.4" rx="1.6"></rect><path d="M5.6 7V5.4a2.4 2.4 0 0 1 4.8 0V7"></path></svg>
          <span class="url__host">slowsignal.blog/</span>
          <span class="url__path"><span class="url__a" data-url-a>writing</span><span class="url__b" data-url-b>writing</span></span>
        </span>
        <span class="chrome__read" aria-hidden="true">
          <svg viewBox="0 0 16 16"><path d="M2.6 4.2h10.8M2.6 8h10.8M2.6 11.8h6.4"></path></svg>
        </span>
      </div>

      <div class="screen" data-screen>
        <div class="list" data-list>
          <header class="blog" data-blog>
            <span class="blog__mono" aria-hidden="true">NE</span>
            <div class="blog__who">
              <p class="blog__name">Slow Signal</p>
              <p class="blog__line">Notes on calm software, by Noor Ellis</p>
            </div>
            <button class="sub" type="button" tabindex="-1">Subscribe</button>
          </header>
          <div class="sec" data-sec><span>Writing</span><span class="sec__n">24 posts</span></div>
          <ul class="rows" data-rows></ul>
        </div>

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

        <article class="post" data-post aria-hidden="true">
          <div class="bar" data-bar>
            <button class="back" type="button" data-back>
              <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M9.6 3.6 5.2 8l4.4 4.4"></path></svg>
              <span>Back</span>
            </button>
            <span class="bar__name">Slow Signal</span>
            <button class="save" type="button" data-save aria-pressed="false" aria-label="Save post">
              <svg viewBox="0 0 16 16" aria-hidden="true"><path class="save__shape" d="M4.4 2.6h7.2a.8.8 0 0 1 .8.8v10.2L8 11 3.6 13.6V3.4a.8.8 0 0 1 .8-.8Z"></path></svg>
            </button>
            <span class="prog" aria-hidden="true"><i data-prog></i></span>
          </div>
          <div class="post__page">
            <figure class="cover" data-cover><div class="cover__art" data-art></div><span class="cover__grain" aria-hidden="true"></span></figure>
            <p class="meta"><span class="tag" data-tag>Essay</span><span class="meta__date" data-pdate>Oct 28</span><span class="meta__sep" data-sep aria-hidden="true"></span><span class="meta__read" data-pread>6 min read</span></p>
            <h2 class="title" data-ptitle>Title</h2>
            <div class="body" data-body></div>
          </div>
        </article>
      </div>
    </section>
    <p class="sr" data-live aria-live="polite"></p>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></path></svg>
  </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.

31 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 “Article transition” 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 warm white ground with a fine grain sits a clean white browser window: at the top the arrows, the address bar with slowsignal.blog/writing and the reader icon. Inside is Slow Signal, the made-up personal blog of Noor Ellis: the orange monogram, the name in a serif, the line Notes on calm software and the black Subscribe pill; below, Writing, 24 posts and four posts in rows, each with its drawn cover as a thumbnail (a sun rising over horizon lines, a stack of envelopes, a dark text sheet with an orange cursor, green waves), the title, the date, the reading time and a small arrow. Under the pointer the row lightens, the thumbnail moves closer and the arrow snaps two pixels; pressed, the row sinks a touch. Tapped, the row becomes the page: its ground widens to fill the window and turns to paper, the other rows step away one after the other, the nearest first, the title flies to its place and grows with a one pixel settle, the date and the reading time settle into the meta line each on its own curve, the Essay label arrives, the cover opens out of the thumbnail like a widening window while the drawing inside grows a little slower, the address rolls to quiet-hour and the top bar shows Back, the blog name and the bookmark. Then the text comes in line by line and the thin orange reading bar starts. The bookmark fills orange with a small bump; Back clears the text and puts everything back, faster. Left alone, a drawn pointer opens a post, saves it, goes back and opens another one.

How it works

A row that becomes the page

On click getBoundingClientRect measures the row, the thumbnail, the title, the date and the reading time in the list and their places in the post, already built but hidden. A separate ground starts from the size of the row and GSAP takes it to fill the screen, shifting colour from the hover tint to paper; the title, the date and the reading time start moved and scaled down over their twins in the list and go back to zero, each on its own curve.

The cover that opens out of the thumbnail

The post cover starts moved onto the thumbnail and cut by an inset clip-path as large as it, with the same rounded corner; the cut opens to zero while the drawing inside starts at the thumbnail scale and grows a little slower, with a return from 1.035 to 1. There is only one drawing, an SVG with preserveAspectRatio slice: square in the row, wide in the page.

The text line by line, and the way back

Once the fonts are in, the text is cut into its real lines by reading the offsetTop of every word; each line rises from under a mask with a stagger. Back clears the text, takes the timeline to the end of the move and plays it backwards, faster: the rows come back to their place, the farthest first.

Values to change

NameFileDefaultWhat it changes
OPENscript.js0.82How long the row takes to become the page, in seconds.
STAGGERscript.js0.05The delay between one row stepping away and the next, in seconds.
STEPscript.js12How many pixels the other rows travel as they step away.
LINESscript.js0.07The delay between one line of the text and the next, in seconds.
BACKscript.js1.3How much faster Back plays than the opening (1 for the same speed).
PAUSEscript.js2.6Left alone: how many seconds it stays on an open post.
LOOPscript.jstrueLeft alone, a pointer opens two posts and goes back.
--accentstyle.css#e0592aThe orange of the label, the bookmark and the reading bar.
--paperstyle.css#fbf9f5The paper of the post page.
--bgstyle.css#eeebe4The warm white of the ground.

Try them in the Playground

When to use it

For a personal blog, a newsletter with its archive or a studio journal: whoever picks a post sees where the opening page comes from, and going back finds the list as it was, without losing the thread.

On phones

The same animation with adapted measures: the window is sized on width and height together and fits the box; on the phone you tap a row to open it, Back to return and the bookmark to save it.

With reduced motion

No movement: the list fades out and the post fades in, everything already in place, and Back does the same in reverse.

Pitfalls

  • The square thumbnail and the wide cover crop the same drawing differently: without starting the drawing at the thumbnail scale, the opening window first showed a zoomed piece of the sun instead of the whole thumbnail.
  • Reversing the whole timeline made Back wait while the text lines left one by one: the text fades out on its own in an instant, the timeline jumps to the end of the move and only reverses from there.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, Fraunces (font variabile) 5.3.0.

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

Testing

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