Skip to main content

Animated brand

AnimatedBrand shares the One* identity across products. Set product to the suffix ("Hub", "Brain", "Docs", "Product", "Sales", "Supply", or your own name), then choose whether to display the full wordmark, the O symbol, or One.

import { AnimatedBrand } from "@bmsuisse/ui";

<AnimatedBrand product="Hub" mode="full" animation="signature" size={64} />
<AnimatedBrand product="Docs" mode="mark" animation="liquid" size={48} />
<AnimatedBrand product="Product" mode="one" animation="bounce" size={56} />

By default the lettering stays grey and the dot stays red throughout the animation. Customize the identity with CSS color strings (hex, named colors, or CSS variables):

<AnimatedBrand
product="Hub"
dotColor="#f97316"
textColor="#64748b"
oneColor="#334155"
productColor="#2563eb"
ringColor="#334155"
/>

textColor sets the base for all letters and the ring. oneColor overrides One (including the O ring), productColor overrides the product suffix, and ringColor can override the ring separately. Unset part colors inherit the base. dotColor also colors the animated trails, particles, and expanding shapes; it stays consistent throughout playback. Colors can change without restarting the animation. The component supplies its own geometry styles; no animation library or extra stylesheet import is required. It inherits the surrounding font family.

Props​

PropDefaultPurpose
product"Brain"Product suffix, without the One prefix.
dotColor"#e60028"Dot and all accent animation effects.
textColor"#929292"Base wordmark and ring color.
oneColorinheritedOverride the One prefix and its ring.
productColorinheritedOverride the product suffix.
ringColorinheritedOverride just the O ring, taking precedence over oneColor.
mode"full""full", "mark" (O), or "one" (One).
animation"random"A named motion, or a random choice for each playback.
size48Wordmark font size in CSS pixels; the mark scales with it.
autoPlaytrueAnimate on mount and when playback props change. Set false for a static logo.
replayKey—Change this value to replay without remounting the component.
onComplete—Called after playback or the static reduced-motion fallback.
className, style—Style the wrapper, including its text color.

BRAND_ANIMATIONS exposes the available { id, label } pairs for selectors. The exported BrandAnimation and BrandMode types describe the options.

Choose a motion​

IDMotion
bounceThe dot bounces above the visible letters and lands in the O.
orbitThe dot orbits the symbol and settles into its centre.
impactA quick arrival, a soft recoil, and a settling ring.
liquidA red shape stretches and separates into the signature symbol.
signatureA solid red disc contracts as the grey ring appears.
burstA brief radial expansion gathers back into the centre dot.
gravityA falling shape compresses, rebounds, and resolves into the symbol.

Use a finite animation for sign-in and startup; keep navigation logos static with autoPlay={false}. Replay on an explicit interaction rather than a continuous loop:

const [replay, setReplay] = useState(0);

<AnimatedBrand product="Hub" animation="random" replayKey={replay} />
<button onClick={() => setReplay((value) => value + 1)}>Replay</button>

The component respects reduced-motion preferences and cancels outstanding animations when playback changes or the component unmounts. Server rendering emits a static logo; random motion is chosen in the browser.

The UI demo includes an interactive comparison at /brand-motion, with product, mode and motion selectors, custom product names, and light/dark previews.

Custom names preserve combining accents and joined emoji as grapheme clusters. Older browsers without Intl.Segmenter retain the suffix in one text run. Bounce geometry accounts for scaled ancestor containers.