Skip to content
motionprompts motionprompts

Exploded Layers Hover

GSAP animation component · Published 2026-11-21 · by vanguardia.dev

Open live demo ↗ Download source

What it does

A line-drawn SVG cartridge in five labelled layers that pulls apart vertically around its middle layer on hover, with dashed leader lines tightening as it opens. One paused GSAP timeline played forwards or reversed (0.9s power3.inOut), so leaving mid-way turns back from where it is; touch and pen toggle on tap, keyboard opens on focus-visible and toggles with Enter/Space, and the trigger is a real button with aria-expanded.

How it's built

Categoryhover
Techgsap
Complexitywidget
Performance costlight
Mobile-safeyes

hover svg exploded-view diagram labels line-art timeline reverse touch keyboard a11y

Rebuild it with AI

This component's prompt is part of the paid library. Below you can read how it starts; the full prompt, the exact structure, timing and easing an AI agent needs to rebuild the effect, unlocks with any paid plan, yearly or lifetime.

# Exploded Layers Hover — a line-drawn object pulls apart into labelled layers on hover
## Goal
Build a single centred illustration on a white page: a cylindrical cartridge drawn in thin strokes, made of five stacked layers (lid, mesh, carbon, membrane, mineral base), each with a short dashed leader line and a small uppercase label, alternating right and left. Hover it and the five layers **separate vertically around the middle one** in 0.9s, the leader lines tightening from a loose dash to an almost solid one; move the pointer away and it closes again. If the pointer leaves halfway through, the movement turns back **from where it is**, never jumping. Touch and pen toggle open/closed on tap; the keyboard opens it on focus and toggles with Enter/Space. One layer (the membrane) carries the only colour on the page.
## Tech
Vanilla HTML/CSS/JS with ES module imports. `gsap` (npm) core only: **no plugins, no ScrollTrigger, no Lenis.** All the motion is one paused `gsap.timeline` that is played or reversed.
Fonts, self-hosted: **IBM Plex Mono** 400 for the labels and the caption (Bricolage Grotesque is loaded as the page face but nothing visible depends on it). In this repo: `/c/_vendor/fonts/css/bricolage-grotesque+ibm-plex-mono-e06e78da.css`.
## Layout / HTML
```html
<main class="page">
  <figure class="xl">
    <button class="xl__stage" type="button" aria-expanded="false"
            aria-label="Filter cartridge exploded into five layers: cap, mesh, carbon, membrane and mineral. Open it to pull the layers apart.">
…

Premium prompt

Unlock this prompt, and every other one

From $99/year, or $139 once for lifetime access. Commercial license included.

See pricing Or start with the free set Already bought? Sign in

New components in your inbox

One email a week, only when new components ship, each with its live demo and prompt.