Skip to content
animorio
IT
Back to the library

Film poster row

Hover, ImagesGSAP, CSS onlyMediumCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

A hover animation in the style of premium products: the ‘New this week’ row of a made-up streaming app, Northlight, on a near black page. The poster under the pointer comes into focus the way posters do on a TV: it lifts on a spring, leans slightly towards the pointer and its three layers (the colour, the shape, the title) slide at three different depths, while a glass glare and a one pixel edge of light follow the pointer. The others step back and dim, the page takes the poster's colour and the details below change with it. On a press the poster gives, the glare flares and it goes into My List, with a check drawing itself in the corner.

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>
<!--
  "Film poster row" 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 film poster row that lifts with a glass glare</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" data-stage>
    <!-- the "New this week" row of a streaming app, Northlight. The poster under the pointer comes into focus like on a
         TV: it lifts on a spring, tilts a few degrees towards the pointer, its three layers (the colour, the shape, the
         title) slide at three depths, and a glass glare and a 1px edge of light follow the pointer across it. The page
         takes the poster's colour. A press adds it to My List -->
    <div class="ambient" data-ambient aria-hidden="true"></div>
    <section class="shelf" aria-label="New this week">
      <header class="shelf__head">
        <h1 class="shelf__title">New this week</h1>
        <a class="shelf__all" href="#" data-all>See all
          <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M6 3.5L10.5 8 6 12.5"/></svg>
        </a>
      </header>

      <div class="row" data-row>
        <button class="poster poster--sun" type="button" data-poster aria-label="Paper Sun, add to My List">
          <span class="poster__shadow" aria-hidden="true"></span>
          <span class="poster__img">
            <span class="poster__layer poster__bg" data-depth="-0.6"></span>
            <span class="poster__layer poster__art" data-depth="0.5"><span class="sun"></span><span class="sun-ring"></span><span class="sun-ring sun-ring--2"></span><span class="horizon"></span></span>
            <span class="poster__layer poster__words" data-depth="1"><span class="poster__kicker">Northlight</span><span class="poster__name">Paper<br>Sun</span></span>
            <span class="poster__grain"></span>
          </span>
          <span class="poster__sheen" aria-hidden="true"></span>
          <span class="poster__edge" aria-hidden="true"></span>
          <span class="poster__badge" aria-hidden="true"><svg viewBox="0 0 16 16"><path pathLength="1" d="M4 8.4l2.6 2.6L12 5.4"/></svg></span>
        </button>

        <button class="poster poster--tide" type="button" data-poster aria-label="Low Tide, add to My List">
          <span class="poster__shadow" aria-hidden="true"></span>
          <span class="poster__img">
            <span class="poster__layer poster__bg" data-depth="-0.6"></span>
            <span class="poster__layer poster__art" data-depth="0.5"><span class="moon"></span><span class="water"></span></span>
            <span class="poster__layer poster__words" data-depth="1"><span class="poster__chip">New episodes</span><span class="poster__name">Low<br>Tide</span></span>
            <span class="poster__grain"></span>
          </span>
          <span class="poster__sheen" aria-hidden="true"></span>
          <span class="poster__edge" aria-hidden="true"></span>
          <span class="poster__badge" aria-hidden="true"><svg viewBox="0 0 16 16"><path pathLength="1" d="M4 8.4l2.6 2.6L12 5.4"/></svg></span>
        </button>

        <button class="poster poster--hours" type="button" data-poster aria-label="The Quiet Hours, add to My List">
          <span class="poster__shadow" aria-hidden="true"></span>
          <span class="poster__img">
            <span class="poster__layer poster__bg" data-depth="-0.6"></span>
            <span class="poster__layer poster__art" data-depth="0.5"><span class="arch"></span><span class="arch arch--in"></span></span>
            <span class="poster__layer poster__words" data-depth="1"><span class="poster__kicker">Northlight</span><span class="poster__name">The Quiet<br>Hours</span></span>
            <span class="poster__grain"></span>
          </span>
          <span class="poster__sheen" aria-hidden="true"></span>
          <span class="poster__edge" aria-hidden="true"></span>
          <span class="poster__badge" aria-hidden="true"><svg viewBox="0 0 16 16"><path pathLength="1" d="M4 8.4l2.6 2.6L12 5.4"/></svg></span>
        </button>

        <button class="poster poster--north" type="button" data-poster aria-label="Northbound, add to My List">
          <span class="poster__shadow" aria-hidden="true"></span>
          <span class="poster__img">
            <span class="poster__layer poster__bg" data-depth="-0.6"></span>
            <span class="poster__layer poster__art" data-depth="0.5"><span class="bar"></span><span class="bar bar--2"></span><span class="bar bar--3"></span><span class="dot-sun"></span></span>
            <span class="poster__layer poster__words" data-depth="1"><span class="poster__kicker">Northlight</span><span class="poster__name">North<br>bound</span></span>
            <span class="poster__grain"></span>
          </span>
          <span class="poster__sheen" aria-hidden="true"></span>
          <span class="poster__edge" aria-hidden="true"></span>
          <span class="poster__badge" aria-hidden="true"><svg viewBox="0 0 16 16"><path pathLength="1" d="M4 8.4l2.6 2.6L12 5.4"/></svg></span>
        </button>
      </div>

      <div class="info" data-info>
        <div class="info__text" data-text>
          <p class="info__kicker" data-kicker>Northlight Original</p>
          <h2 class="info__title" data-title>Paper Sun</h2>
          <p class="info__meta"><span data-meta>Drama · 2026 · 8 episodes</span><span class="tag">4K</span><span class="tag">HDR</span></p>
        </div>
        <div class="info__actions">
          <button class="btn btn--play" type="button" data-play>
            <span class="btn__face" data-face>
              <svg class="btn__icon" viewBox="0 0 16 16" aria-hidden="true"><path class="tri" d="M5.2 3.6v8.8L12.2 8z"/></svg>
              <span>Play</span>
            </span>
          </button>
          <button class="btn btn--list" type="button" data-list aria-pressed="false">
            <span class="btn__face" data-face>
              <svg class="btn__icon" viewBox="0 0 16 16" aria-hidden="true">
                <path class="plus" data-plus d="M8 3.5v9M3.5 8h9"/>
                <path class="tick" data-tick pathLength="1" d="M3.6 8.4l2.9 2.9 5.9-6.2"/>
              </svg>
              <span class="btn__words" data-words>My List</span>
            </span>
          </button>
        </div>
      </div>
    </section>
    <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.

44 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 “Film poster row” 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 page sits the ‘New this week’ row of a streaming app, with ‘See all’ and a small arrow on the right: four tall posters (three on a phone) with a paper grain, each drawn with a few shapes: a pale sun with two rings over a horizon for ‘Paper Sun’, a moon and the lines of the water for ‘Low Tide’ with the glass ‘New episodes’ pill, a lit purple arch for ‘The Quiet Hours’, three black slanted bars and a small red sun on sand coloured paper for ‘Northbound’. Below, the chosen poster's title, the genre, the year, the 4K and HDR tags and two buttons: Play, white, and My List, made of glass. When the pointer reaches a poster it lifts and grows on a spring that passes the mark and settles, leans slightly towards the pointer, and its layers come apart: the background goes one way, the shape and the title the other, at different depths. On the glass a soft glare and a wide band of light follow the pointer, the one pixel edge lights up only near it, and underneath a blurred shadow in the poster's colour opens up. The others step back a little and dim, the page behind takes the same colour and the details below change with a rising fade. On a press the poster gives under the finger and comes back on a spring, the glare flares for an instant, a white disc with a check drawing itself appears in the corner and My List turns into ‘Added’, the plus spinning away for a check. Left alone, the row visits itself: three posters, one press, and the loop starts again.

How it works

One poster, five layers

Every poster is a button holding the shadow, the picture (background, shape and title, each a layer with its depth in data-depth), the glare, the edge and the check. The shapes are CSS only: gradients, circles, an arch with 999px corners, slanted bars; the grain is an feTurbulence in an SVG inside the url.

The pointer in the row's pixels

The real pointer and the one of the walk on its own go through the same function: it finds the poster holding it using the unscaled rectangles (offsetLeft and offsetWidth, measured again on resize) and turns the point into -1 to 1 inside it.

Three springs every frame

The focus and the two pointer coordinates each have their own spring, integrated by hand in two steps per frame (stiffness 210, damping 17): the poster grows by 8.5%, lifts by 6 px, leans a degree towards the pointer and passes the mark by a pixel. The layers move by DEPTH times their depth, in opposite directions.

The glare is a moving gradient

The --sx and --sy variables carry the pointer into the CSS: a radial glare in soft-light, a hot spot in screen and a linear band that moves the other way. The one pixel edge is a radial gradient cut by a mask that keeps only the frame.

The press and the list

On a click two timelines take the press and the flare to 1 in 0.1 s and bring them back to zero on a spring; the check's disc comes in with back.out and the check draws with stroke-dashoffset. The My List button spins its plus by 90 degrees and draws its own check.

Values to change

NameFileDefaultWhat it changes
LIFTscript.js0.085How much the poster in focus grows (0.085 = 8.5%).
TILTscript.js1.2How far it leans towards the pointer, in degrees.
DEPTHscript.js7How far the layers slide apart, in pixels.
GLAREscript.js1How bright the glass glare is.
DIMscript.js0.38How much the other posters darken.
STIFFNESSscript.js210The spring of the focus: higher is quicker.
DAMPINGscript.js17Lower lets the poster pass the mark and come back.
SPEEDscript.js12 = the walk on its own twice as fast, 0.5 = half.
LOOPscript.jstrueRepeats the walk on its own.

Try them in the Playground

When to use it

For the catalogue of a streaming app, a film festival, a course or podcast platform, or the covers of a book or record shop: a row of posters that invites you to stop on each one.

On phones

The same animation with adapted sizes: three posters instead of four, as wide as the box allows and sized on the height too, the details above the buttons instead of beside them; with a finger the poster comes into focus where you touch and a tap adds it to the list.

With reduced motion

The posters do not move, grow or tilt: the one in focus fades its glare in and the others dim; the check, the details and the list button change with a fade.

Pitfalls

  • GSAP and the frame loop must not write the same transform: only the loop moves the posters, the entrance moves the whole row and only gives the posters their opacity.
  • Finding the poster under the pointer needs the unscaled rectangles: with getBoundingClientRect the poster in focus, being larger, would steal the pointer from its neighbour.
  • The sliding layers are 7% larger than the poster on every side, otherwise moving they would show an empty edge.
  • No perspective, rotateX or rotateY on the poster: Chrome paints it once and then scales it, and the title and the pill come out blurred. The depth comes from the sliding layers and the glare; the poster only leans a degree in its own plane.

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