Motion
Drop-in animated marks and loaders that inherit color and respect reduced motion.
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
Loader
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.
Install
Animated mark
Link the shared stylesheet and the animation script once per page. Put the mark where it should appear.
<link rel="stylesheet" href="https://cdn.shaughv.com/brand/shaughv/components.css">
<script defer src="https://cdn.shaughv.com/js/animated-brand-mark.js"></script>
<shaughv-mark class="masthead-logo" aria-label="SHAUGHV"></shaughv-mark>
The default box is 96 px square and inherits text color. Style each instance with normal site CSS, or set the shared properties on a parent.
.masthead-logo { --shaughv-mark-size: 120px; color: #b65a39; }
.sidebar-logo { --shaughv-mark-size: 72px; --shaughv-mark-color: #537458; }
Give the animation at least 64 px on each axis. Smaller marks render the static wordmark. Existing script-only embeds can keep their own dimensions and color.
Portrait loader
<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:
<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.
Behavior
js/animated-brand-mark.js defines <shaughv-mark>. The loop is:
- Wordmark holds
- Undraws
- Portrait (mustache + glasses) draws in
- Undraws
- 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: 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 for more examples. The catalog lists exact scripts and source ports. For pointer interactions, use the cursor with frosted dropdowns. The ambient background is an optional page texture.