Web components for the new castomo website, drawn from the Andy pack: characters caught mid-jump with loose props around them. The library lifts those props off the drawing and puts them to work, floating, falling, flying to a cart or bursting on success. Sliders, tiles, floating props, product presentation, scroll-driven scenes, sticky layouts, hero sections, contact forms, onboarding screens, site headers and newsletter sign-ups. Every component is a custom element with its own shadow DOM and no dependencies, and takes its colours from the brand.
00
The base: <andy-art>
Every component draws through this element. It loads a piece lazily, binds its teal, red and orange to the brand, and can split the loose props onto their own layers.
<andy-art>
flat
One layer. Cheapest; for thumbnails and icons.
layers="flat"
props + float
Every loose prop on its own plane, bobbing on its own rhythm and drifting with the pointer.
layers="props" float parallax="22"
props, pulled apart
Each prop exposes its centre, so outside CSS can scatter it along its own direction.
::part(prop) · --cx --cy
dark section
Navy and plum clothing follow two variables, so the drawing holds on dark.
--andy-ink · --andy-ink-2
Using it on a site
Load
Import only the components a page uses. Each one brings in the base element and the shared helpers.
<script type="module" src="/andy/components/andy-float-hero.js"></script>
<!-- or everything at once -->
<script type="module" src="/andy/index.js"></script>
Theme
The same three brand slots as the Noodle library. Teal takes the dark stop, red the mid, orange the light; the drawing's shades are mixed from them.
:root {
--slot-0: #B8331A; /* was teal */
--slot-1: #DC4425; /* was red */
--slot-2: #F58A5E; /* was orange */
--andy-ink: #302d43; /* clothing */
}
Props, honestly
Only props drawn loose can float free. About twenty pieces have them (trophy has five); in the rest the prop is held in hand. Prop effects are built to look finished with any piece.
Use it for
The new castomo website first; then any ecosystem site, recoloured by its brand slots. Andy suits moments with energy: success states, onboarding, empty and error pages, promotions.
Technique
Custom elements with shadow DOM and shared constructable stylesheets. Art is inlined SVG; loose props are found by clustering shapes that touch, then lifted onto registered planes styled from outside through ::part() and custom properties.
Weight
Each component is a few KB of JS before compression. The 63 pieces are 4–12 KB each; a page loads only what it shows, lazily.
Licence
GetIllustrations Free: requires a visible linked credit on every page. Fine for our own sites; not for dash-b or any builder where users pick the art, unless we buy the Extended licence.