{
  "format": "css.observer/playground@1",
  "id": "00000000-0000-4000-9000-000000000007",
  "url": "https://css.observer/s/mesh-gradient-hero",
  "title": "Mesh gradient hero",
  "description": "A slowly shifting mesh gradient with a film-grain overlay, behind a headline and signup field.",
  "category": "backgrounds",
  "tags": [
    "property",
    "radial-gradient",
    "grain"
  ],
  "visibility": "public",
  "status": "published",
  "revision": 1,
  "author": "observer",
  "forked_from": null,
  "created_at": "2026-12-02T01:24:56.169Z",
  "updated_at": "2026-12-02T01:24:56.169Z",
  "published_at": "2026-12-02T01:24:56.169Z",
  "source": {
    "html": "<section class=\"mesh\">\n  <div class=\"mesh__content\">\n    <h1>Notes that keep up with you</h1>\n    <p>Capture an idea in two seconds. Find it again in one.</p>\n    <form class=\"mesh__form\" onsubmit=\"event.preventDefault()\">\n      <label class=\"visually-hidden\" for=\"email\">Email</label>\n      <input id=\"email\" type=\"email\" placeholder=\"you@company.com\">\n      <button type=\"submit\">Join the waitlist</button>\n    </form>\n  </div>\n</section>",
    "css": "@property --x1 { syntax: \"<percentage>\"; inherits: false; initial-value: 20%; }\n@property --y1 { syntax: \"<percentage>\"; inherits: false; initial-value: 20%; }\n@property --x2 { syntax: \"<percentage>\"; inherits: false; initial-value: 80%; }\n@property --y2 { syntax: \"<percentage>\"; inherits: false; initial-value: 75%; }\n\nbody {\n  margin: 0;\n  font: 16px/1.5 system-ui, sans-serif;\n}\n\n.mesh {\n  position: relative;\n  isolation: isolate;\n  min-height: 100vh;\n  display: grid;\n  place-items: center;\n  overflow: hidden;\n  background:\n    radial-gradient(at var(--x1) var(--y1), #ff8a5c 0, transparent 45%),\n    radial-gradient(at var(--x2) var(--y1), #7b61ff 0, transparent 50%),\n    radial-gradient(at var(--x1) var(--y2), #2dd4bf 0, transparent 45%),\n    radial-gradient(at var(--x2) var(--y2), #f9c74f 0, transparent 50%),\n    #f6efe7;\n  animation: drift 16s ease-in-out infinite alternate;\n}\n\n.mesh::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  background: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E\");\n  mix-blend-mode: soft-light;\n}\n\n@keyframes drift {\n  to {\n    --x1: 35%;\n    --y1: 5%;\n    --x2: 65%;\n    --y2: 95%;\n  }\n}\n\n.mesh__content {\n  max-width: 30rem;\n  padding: 2rem;\n  color: #1c1a17;\n  text-align: center;\n}\n\n.mesh__content h1 {\n  margin: 0;\n  font-size: clamp(2rem, 6vw, 3.4rem);\n  line-height: 1.02;\n  letter-spacing: -0.04em;\n  text-wrap: balance;\n}\n\n.mesh__content p {\n  margin: 0.8rem 0 1.6rem;\n  color: #3d3933;\n}\n\n.mesh__form {\n  display: flex;\n  gap: 6px;\n  padding: 6px;\n  border-radius: 14px;\n  background: rgb(255 255 255 / 0.55);\n  backdrop-filter: blur(12px);\n}\n\n.mesh__form input {\n  flex: 1;\n  min-width: 0;\n  padding: 0 12px;\n  border: 0;\n  background: transparent;\n  font: inherit;\n  outline: none;\n}\n\n.mesh__form button {\n  padding: 0.7em 1.1em;\n  border: 0;\n  border-radius: 10px;\n  background: #1c1a17;\n  color: #fff;\n  font: inherit;\n  font-weight: 600;\n  cursor: pointer;\n}\n\n.mesh__form:focus-within {\n  outline: 2px solid #1c1a17;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .mesh {\n    animation: none;\n  }\n}\n\n.visually-hidden {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  overflow: hidden;\n  clip-path: inset(50%);\n  white-space: nowrap;\n}",
    "js": ""
  }
}