---
title: Motion
description: Drop-in animated marks and loaders that inherit color and respect reduced motion.
sidebar:
  icon: sparkles
  order: 5
---

Two browser-ready custom elements cover the animated wordmark loop and the official loader. Both inherit `currentColor` and skip motion when the visitor asks for less of it.

## Preview

### Animated brand mark

<MotionPreview kind="mark" />

### Loader

<MotionPreview kind="loader" />

<span id="preview-controls" />

Choose a cream-and-sage, cream-and-olive, or orange-and-charcoal surface to check color inheritance. Turn Animate off to hold a static mark. The controls also respect your system reduced-motion preference. More brand examples live in the [asset showcase](/showcase).

## Install

### Animated mark

```html
<shaughv-mark
  style="display:block;width:96px;height:96px;color:currentColor"
  aria-label="SHAUGHV"
></shaughv-mark>
<script src="https://cdn.shaughv.com/js/animated-brand-mark.js"></script>
```

### Portrait loader

```html
<shaughv-loader style="color:var(--accent);height:120px"></shaughv-loader>
<script src="https://cdn.shaughv.com/js/shaughv-loader.js"></script>
```

The loader fetches Anime.js from jsDelivr if it is not already loaded.

## Customize

Hold a static frame with `data-static` (the footer of the CDN website does this):

```html
<shaughv-mark data-static aria-label="SHAUGHV"></shaughv-mark>
```

A React source port also ships at `js/react/AnimatedBrandMark.jsx` for projects that already own the component tree. The vanilla custom element is the default for HTML pages.

:::tip
Color comes from CSS. Set `color` on the host. Do not recolor individual SVG paths.
:::

## Behavior

`js/animated-brand-mark.js` defines `<shaughv-mark>`. The loop is:

1. Wordmark holds
2. Undraws
3. Portrait (mustache + glasses) draws in
4. Undraws
5. Wordmark returns



The loader portrait fills, drains, and morphs into a soft blob before returning. Keep its timing, paths, and geometry intact.

### Reduced motion

For a moving page texture, see the optional [ambient background](/ambient-background): QorkMe's procedural dither field and finite mouse wake, with color controls and a clear reading column. Its reduced-motion mode holds a static field and disables the wake.

Both drop-ins honor `prefers-reduced-motion: reduce`. The mark stays on the static wordmark. The loader does not run the morph loop. Keep that behavior if you wrap either element.

## Reference

Browse the [asset showcase](/showcase) for more examples. The [catalog](https://cdn.shaughv.com/tree.json) lists exact scripts and source ports. For pointer interactions, use the [cursor](/cursor) with [frosted dropdowns](/dropdowns). The [ambient background](/ambient-background) is an optional page texture.
