← Prompt Lab

Colorway Swatch Morph

Tactile product tinting with soft studio light
E-Commerce · Cards3 KB0 copies
SHARE
01 / PLAYGROUNDColorway Swatch Morph
BRAND COLORS
Fullscreen ↗

A product card where tapping swatches cross-fades the hero object's tint through a soft studio-light gradient, letting shoppers preview colorways instantly. It feels premium because every transition keeps the warm ivory cyclorama lighting intact instead of flashing flat color.

ecommercecolorwayproduct-cardmicro-interactioncss
// Drop the standalone colorway-swatch-morph.html into /public/effects/colorway-swatch-morph.html
// Or copy the HTML/CSS/JS tab directly into your component — zero external dependencies.
export function ColorwaySwatchMorphEmbed() {
  return (
    <div className="relative min-h-[480px] w-full overflow-hidden rounded-2xl border border-white/10">
      <iframe
        src="/effects/colorway-swatch-morph.html"
        title="Colorway Swatch Morph"
        className="h-full min-h-[480px] w-full border-0"
        loading="lazy"
      />
    </div>
  )
}

WHY THIS WORKS IN PRODUCTION

  • Soft-light overlay keeps glass/ceramic sheen during tint change
  • 420ms spring cross-fade; press feedback on each swatch
  • 36px mobile tap targets + arrow-key swatch navigation
  • Reduced-motion swaps cross-fade for instant fill, zero deps

DROP-IN SPECS // WEB & MOBILE FIT

UI SLOTCards & Bento
BEST USE CASEE-Commerce & Retail UI Component
IDEAL PLACEMENTDrop directly into section or mobile screen
BUNDLE SIZE3 KB
DEPENDENCIESZero (HTML/CSS/JS)
MOBILE / TOUCHMobile Friendly
GPU WEIGHTLight · 60fps