127

Wordmark Dock Preloader

£7
or the whole Vault, £99
Open in new tab

A preloader where your brand wordmark or logo mark fills the screen, its letters or shapes rising through a mask one by one, then the mark flies into the header's logo slot, as one block or piece by piece, as the page arrives around it.

Flip intermediate
4 more details
load-sequenceflip-layoutmask-revealstagger

Released

About this effect

Most preloaders put a logo on an overlay, fade it out, and leave a second copy of the same logo waiting in the header. This one has only one logo. Your header logo, a wordmark in live text or a mark built from SVG shapes, grows to fill the width of the screen and its pieces rise into view through a mask, one after another. When the page is ready, the mark flies into its own slot in the header, and the navigation, headline and hero arrive around it as the cover draws up behind the flight. Choose a single clean glide, or the scatter dock: each letter or shape takes its own arc, they land one after another and re-form the logo, and the cover can part behind them in columns of the logo's own colours. The logo can even take a different shape on the splash, a long row that settles into a compact cluster in the header.

Read the full effect overview

Because the giant mark and the header logo are the same element, there is no swap and no flicker at the end: the loader simply becomes the masthead. The fit is measured, so a five-letter name, a fifteen-letter name or a row of shapes all fill the screen edge to edge, and the mark lands exactly where your header puts it, whatever the layout.

It waits on real readiness, with a minimum hold so the wordmark always reads and a hard cap so nobody waits on a slow image. Repeat visitors in the same session can skip it, and it degrades to a short cover fade for reduced motion and a plain header without JavaScript.

Wordmark Dock Preloader - GSAP animation effect preview

What's included

10 items
  • One logo, not two: the header wordmark or logo mark itself becomes the giant intro mark and docks back into place
  • Letters or shapes rise through individual masks; element children such as SVG shapes or a coloured dot are kept whole
  • Fitted to the viewport by measurement after fonts load, so short and long brand names both fill the width
  • Lands on the header slot's real position with the Flip plugin, wherever your layout puts the logo
  • Scatter dock option: each piece flies on its own arc and lands in turn, with an optional cover that parts in the logo's colours
  • The logo can have a big form and a small form, such as a row on the splash and a cluster in the header
  • Waits for fonts and page load, with a minimum hold and a hard cap, and an accent hairline that shows the wait
  • Page content marked for reveal arrives around the docking mark; images can open with a clip from below
  • Once-per-session mode, replay(), pause() and play() to hold the sequence, and a wordmarkdock:complete event
  • Reduced motion fades the logo in its header place and fades the cover; no JavaScript shows a normal header

Perfect for

5 use cases
  • Studio and agency sites where the brand name is the first and strongest thing on the page
  • Product, food and drink brands with a distinctive wordmark or a bold logo mark built from shapes
  • Launch pages that want a branded opening without a separate splash logo
  • Portfolio sites whose header logo should feel earned rather than simply present
  • Multi-page sites that play the intro once per visit and open later pages straight onto the header

How it works

3 sections

The cover is an ordinary layer over a complete page, so search engines and visitors without JavaScript get the full HTML and a normal header. When the script starts, it takes the logo already sitting in your header, lifts it above the cover and scales it about its centre until it spans the screen. The size adapts to your actual logo in its actual typeface, waiting for webfonts first, which is why any brand name fills the width without guesswork.

Each letter or shape sits in its own clipping mask and rises into view in a quick stagger. The mark then holds until the page reports ready, never shorter than the minimum and never longer than the cap, while a thin accent line underneath tracks the wait.

The dock is the signature. The Flip plugin records the giant mark, lets it settle back into its header slot, and animates the difference, so the logo shrinks and travels along one continuous path into exactly the place your layout gives it. The cover draws up behind the flight, the navigation and copy rise in, and the hero image opens from below. With the scatter dock the pieces leave one by one instead, each on its own arc, and land in sequence to re-form the logo wherever the header lays them out, while the cover parts behind them. At the end the letters are joined back into the original text, so the header holds the same logo it started with.

Plugins Flip
Difficulty Intermediate
Includes HTML + JS + CSS source, documentation, AI setup prompt, lifetime updates

Lighthouse, as measured

Google Lighthouse on this effect's demo (3 pages, lowest score shown), from the latest scan. A measurement of the demo as shipped, not a promise for your page.

Accessibility
100
Best practices
100

No performance score, on purpose. That figure depends on how you deploy: your server's compression and caching, your CDN, the connection and the device doing the test, none of which the code controls. The same page can score very differently on two consecutive runs, so measure it where it will live.

The Vault opens this source and the whole library.

Each product gives you the HTML, CSS and JavaScript source, the full documentation and an AI setup prompt, licensed for unlimited personal and commercial projects. Every paid product is tested for desktop and mobile layouts, reduced-motion handling, animation cleanup and keyboard controls wherever there is something to operate.

One payment, over 350 products, and future additions to the library.

Documentation

Quick Start

1. In the <head>, before your stylesheet:

In your downloadThe working code for this step, in index.html.

2. The cover goes first in <body>; mark your header logo:

In your downloadThe working code for this step, in index.html.

3. Before the closing </body> tag:

In your downloadThe working code for this step, in index.html.

The script starts itself. Copy the Effect block from the top of style.css (or the whole file while you try it).

Using It With Your Own Design

The logo. data-wd-target is a CSS selector for the element that becomes the giant mark; it defaults to [data-wd-mark]. Point it at the wordmark itself, not at a padded link around it: the fit measures that element's box. It can hold:

  • Live text. Each character rises in its own mask. At the end the characters are joined back into the original text nodes, so kerning and selection behave normally in the header.
  • Element children. Any child element (an inline SVG, an icon, a styled dot) is kept whole and rises as one letter. The demo's logo is six <svg> shapes and no text at all, so each shape rises, and with the scatter dock flies, on its own. For an SVG logo, give each letter or shape its own child element, or use one <svg> and it rises as a single piece. Whitespace between child elements is left alone, so formatted markup is fine. A mark with no text needs an aria-label on its link.

An inline element is made inline-block for the run only, because it has to be transformed. Give the logo its colour from --wd-ink so the giant and docked states match.

Stacking. The cover sits at z-index: var(--wd-z) (1000). The logo is lifted one above it with position: relative and a z-index for the run. If your header creates its own stacking context (a sticky or fixed header with a z-index, a transform, a filter), the logo cannot escape it: put data-wd-lift on the header and the header is lifted instead. Give a lifted header a transparent or cover-coloured background, or set --wd-cover to match it.

Reveal targets. Anything with data-wd-reveal is hidden while the cover is up (by the html.wd-lock rule in the CSS) and rises in as the mark docks. data-wd-reveal="clip" opens the element from below instead, which suits images. When the sequence ends their inline opacity, visibility, transform and clip-path are cleared, so do not rely on inline values for those properties on reveal targets.

A big form and a small form. While the logo is giant it carries data-wd-phase="giant", and the attribute is removed as it docks. With the scatter dock each piece flies to wherever the header layout puts it, so CSS on that attribute can give the logo a different arrangement on the splash. The demo's mark is a 3 x 2 grid in the header and a single row while giant:

In your downloadThe working code for this step, in style.css.

With the default dock the logo travels as one block, so keep its layout the same in both phases.

What is only the demo. Dunnock, its six-shape mark and palette, Mona Sans, the photographs, the header, nav, hero layout and the Replay button styling. The progress hairline is optional: delete the data-wd-progress element and nothing else changes.

Colours and timings:

Property Default What it controls
--wd-cover #151515 Cover ground
--wd-ink #f4ecdf Wordmark colour (applied by your logo CSS)
--wd-accent #f2a83b Progress hairline
--wd-z 1000 Cover stacking order
--wd-min 1.2 Minimum hold, seconds
--wd-max 4 Hard cap, seconds
--wd-rise 0.9 Letter rise, seconds
--wd-dock 1.1 Flight into the header, seconds

Options

Data attributes on the [data-wd] element override the CSS timings.

Attribute Default Description
data-wd-target [data-wd-mark] Selector for the header logo
data-wd-min 1.2 Shortest hold in seconds, so a cached load still reads. 0 is allowed
data-wd-max 4 Hard cap in seconds: the mark docks by then whatever is still loading
data-wd-rise 0.9 Letter rise duration
data-wd-dock 1.1 Dock flight duration
data-wd-fit 0.9 Share of the viewport width the giant mark fills (0.2 to 1)
data-wd-dock-style flip flip docks the logo as one block. scatter sends each letter or shape on its own arc, leader first, landing with a small settle, and lets the logo change layout between phases
data-wd-trail off Scatter dock only: the cover parts in one column per piece, each briefly showing that piece's colour (its SVG fill, or its text colour)
data-wd-once off Skip the sequence once it has played this session. A value names a separate session key; empty uses the site-wide key

Other hooks: data-wd-mark (default logo hook), data-wd-phase="giant" (set on the logo while it is giant, for CSS), data-wd-lift (stacking escape, above), data-wd-progress (hairline), data-wd-reveal / data-wd-reveal="clip" (page content), data-wd-replay (any button that replays).

What "ready" means. The giant mark docks when all of these hold: the letters have risen, the minimum has passed, the logo's webfont has loaded and the document has finished loading (window load, so images included). The cap overrides readiness. The hairline climbs toward 90% on time alone and only completes when the page is ready.

Once per session. Every completed run records itself in sessionStorage (under the site-wide key unless data-wd-once names one). A page with data-wd-once then opens with no cover. Storage that is blocked just means the sequence plays.

Accessibility

  • The cover is aria-hidden and holds nothing focusable, so it never traps focus. The logo link is not clickable while giant.
  • While the letters are split, a visually hidden copy of the text keeps the logo readable to screen readers; the masks are hidden from them.
  • All content is in the HTML from the start: the cover is only a layer, so crawlers and assistive technology read the full page.
  • Scroll is locked only while the cover is up.

Reduced Motion Behavior

The logo stays in its header slot, lifted above the cover, and fades in there while the cover fades out over 0.4s once the logo's font is ready. No travel, scaling, scatter or masking. A preference change mid-sequence settles the page cleanly.

Without JavaScript

The cover is display: none unless has-js is present, and the script removes has-js if GSAP or Flip fails to load. As a last resort the cover hides itself after six seconds if the script never starts.

Dependencies

Required:

  • GSAP 3.12+ (the demo pins 3.15.0)
  • Flip plugin

No other plugins and no Lenis.

Also in your download: the full source, worked examples, the events and programmatic API, and the class reference.

£7