Poster Pop-Out 3D
A poster that tips backwards while its character, cut out on a second image, rises and breaks out through the top of the frame. On hover, focus or tap.
Updated
This effect is part of Effect.Labs — 846 vanilla effects, some free, some premium. Cards has 43 effects, including 6 free. Explore the category →
3 usage examples



How it works
Each .ppo-card stacks two images with the same framing: the full poster (.ppo-poster, clipped by .ppo-frame) and the character alone on a transparent background (.ppo-cutout), placed outside the clipped frame. At rest they match exactly and you only see a poster. A dark gradient (.ppo-scrim) carries the overline and title at the bottom, written as HTML text.
Everything hangs on one variable, --ppo-o, going from 0 to 1. The body pivots 22° backwards (rotateX), the character rises by 20 % of the height, moves 40 px towards the viewer and grows 4 %, with a shadow and a back-light in the --ppo-glow colour. The poster darkens slightly, the title comes 68 px forward and a blurred halo lights up on the floor. Duration: 0.6 s, on a curve that brakes at the end.
The variable is 1 on hover (only on screens that can hover), on keyboard focus, or when the script sets the ppo-on class after a tap. A second tap closes it, as does a tap elsewhere or the Escape key. With a mouse, the script adds a subtle tilt that follows the pointer (±5° sideways, ±3° up and down). The demo loads its four images from effect-labs.com: replace them with your own.
Accessibility
- Real text: overline and title are HTML, read by screen readers and translatable. The poster has a descriptive
alt; the cut-out character, which repeats it, is hidden (alt=""andaria-hidden). - Keyboard: each poster is a tab stop (
tabindex="0",role="group"with anaria-label). Focus opens it like hover, with a violet outline 8 px from the edge. If the poster holds a link or button, its focus opens the card too (:has(:focus-visible)). - Touch: no sticky hover; one tap opens, a second closes, and opening a poster closes the others. A link or button inside keeps its job: tapping it opens nothing.
- Reduced motion: no tipping, rising or pointer tilt. Opening becomes a fade: the poster drops to 45 % opacity and the character, unmasked, stands out through a coloured glow.
- Reduced transparency: with
prefers-reduced-transparency(or theppo-hcclass on.ppo-scene), the bottom of the poster becomes an opaque black band under the title and the floor halo goes away.
Browser compatibility
3D transforms, mask-image, color-mix() in the character's filter, :has() for focus inside. Measured on the sold code in Chromium 149, Firefox 151 and WebKit 26.5: hover, keyboard focus, touch (open, close, tap elsewhere) and 390 px width all correct, including with the code pasted twice. The test tool's WebKit flattens 3D: the real tipping in Safari is not checked.
A browser without color-mix() drops the character's whole filter: it still leaves the frame, without shadow or back-light. Without JavaScript, hover and focus still work; only tapping opens nothing.
The code
HTML structure to paste into your page (the CSS + JS come with your purchase):
<div class="fx-0843-root">
<div class="ppo-scene">
<div class="ppo-card" tabindex="0" role="group" aria-label="…" style="--ppo-glow:#ff4a1f">
<div class="ppo-tilt">
<div class="ppo-body">
<div class="ppo-frame"><img class="ppo-poster" src="affiche.webp" alt="…"></div>
<img class="ppo-cutout" src="personnage.webp" alt="" aria-hidden="true">
<span class="ppo-scrim" aria-hidden="true"></span>
<div class="ppo-caption">
<span class="ppo-kicker">…</span>
<strong class="ppo-title">…</strong>
</div>
</div>
</div>
</div>
</div>
</div>
One-time payment, no subscription — the code is yours forever
Customize
Options passed to the API or data-* attributes:
| Option / property | Default | Effect |
|---|---|---|
Images (HTML — src of .ppo-poster and .ppo-cutout) |
Four images hosted on effect-labs.com (demo) | Host your files on your own site. The character must have exactly the framing of the poster (same format, 2:3 advised, e.g. 600 × 900) on a transparent background, as PNG or WebP. |
Poster width (CSS — --ppo-w on .ppo-scene) |
clamp(96px, 24vw, 118px) |
Every size follows from it: perspective, top room for the character to rise, halo blur, title size. |
Tip and rise (CSS — --ppo-tilt, --ppo-rise) |
22° and -20 % | 12° and -12 % for a quieter effect; beyond -25 %, leave more room above the row. |
Halo colour (CSS — --ppo-glow on each .ppo-card) |
#ff4a1f and #4f8dff in the demo |
Use the poster's dominant colour: it tints the character's back-light and the floor glow. |
Focus outline (CSS — --ppo-accent) |
#a78bfa |
Pick a colour that stands out from your page background. |
Duration (CSS — .6s in the transition rules) |
0.6 s | Use 0.4 s for a brisker move; keep the same value on .ppo-body, .ppo-cutout and .ppo-caption. |
Shelf with a button (CSS — .ppo-shelf, .ppo-meta, .ppo-btn) |
Not used | Classes for a titled row where each poster, as it opens, reveals a line of details and a button. |
FAQ
src of both images in each card, and rewrite the poster's alternative text and the title at the same time.