{"data":{"slug":"discovered-53e3ff882611076adc9aaa8b664c6cbfaee0894a5b00eaf2","title":"Plate Effects","summary":"Apply animated plate effects to a hero section using predefined visual styles, with options to customize and control the animation behavior.","url":"https:\/\/skillshunter.net\/skills\/discovered-53e3ff882611076adc9aaa8b664c6cbfaee0894a5b00eaf2","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-53e3ff882611076adc9aaa8b664c6cbfaee0894a5b00eaf2","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-53e3ff882611076adc9aaa8b664c6cbfaee0894a5b00eaf2.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-53e3ff882611076adc9aaa8b664c6cbfaee0894a5b00eaf2\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure the host element is a hero section with `isolation: isolate` applied. The heading must be passed as the `print` option to be rendered onto the tiles. Fonts must be ready before rendering, and the heading's styles are preserved for accessibility and selection.","instructions":"---\nname: plate-effects\ndescription: Tilted tile-plate hero backgrounds on a 2D canvas. A plate of hexagon, long hexagon, octagon-and-square, cube, triangle, square, slanted or capsule tiles seen through a camera leaning back, lit by soft coloured lamps, with an optional halftone dot floor. When the pointer moves over it the near field stays flat and the far field stands up as one block with dark side walls, stepped along tile edges. The page's real H1 can be printed onto the tiles so the seams cut it and lifted tiles carry their piece of a word. Fifteen named presets with rest and hover posters, a live gallery, one-line mounting, and the power and accessibility rules each keeps. Use when a hero, landing page, sign-in screen or video opener wants \"a tile plate\", \"tilted tiles\", \"hex plate\", \"tiles that rise under the mouse\", \"the headline printed on the tiles\" or names a preset such as graphite-violet or bone-ink.\nmetadata:\n  license: AGPL-3.0-or-later\n  copyright: \"2026 DevTribe Labs\"\n  homepage: https:\/\/github.com\/DevDadTribe\/toolbox\n---\n\n# Plate effects: tilted tile plates\n\nA hero filled edge to edge with large tiles, seen from a camera leaning back a little so the\nnear tiles look bigger than the far ones. Thin seams, a hint of bevel, soft lamps in the upper\ncorners, a dotted floor fading up from the bottom. Move the pointer over it and the far side\nof a stair-stepped tile boundary rises toward you as one block; the side near the pointer stays\nflat. The heading can be painted onto the tiles, so when they lift the seams cut the words and\neach lifted tile carries its piece.\n\nIt is decoration. The page is complete without it, the real heading stays in the DOM for\nsearch and screen readers, and it switches itself off for anyone who asked for less motion or\nfor forced colours.\n\n**Pick one by eye first.** Serve this folder and open the live gallery:\n\n```bash\npython3 -m http.server 8741        # run inside this skill's folder\n```\n\nThen open `http:\/\/127.0.0.1:8741\/gallery\/live.html`, pick a preset, move the mouse over the\nhero. Every preset has a rest and a hover poster in `posters\/`. The full table is in\n[references\/catalogue.md](references\/catalogue.md).\n\n## The presets (say the name)\n\n| Preset | What it is |\n|---|---|\n| `graphite-violet` | Dark graphite hexes, violet lamp top left, cyan top right, dot floor, prints the heading. The flagship |\n| `slate-amber` | Near-black warm slate hexes, one amber lamp, warm dots |\n| `bone-ink` | Light: bone ground, thin ink seams, a soft warm lamp, dark dots, dark heading |\n| `navy-aqua` | Deep navy hexes, aqua and blue lamps, a little more tilt |\n| `forest-brass` | Deep green hexes, brass and moss lamps, cream dots |\n| `octagon-tile-floor` | Octagons with small darker squares, cool white lamps, no floor |\n| `cube-field` | Rhombille cubes that read as stacked blocks at rest, violet and teal lamps |\n| `triangle-facets` | Triangle lattice, coral and blue lamps, no floor, the gentlest lift |\n| `long-hex-runway` | Wide stretched hexes and a steep tilt that runs away like a runway |\n| `square-grid-steep` | Square grid with a hard tilt (bottom tiles about twice the top), teal and lime lamps |\n| `flat-plate` | The flagship plate seen straight on, no tilt |\n| `quiet-signin` | Big hexes, low tilt, faint seams, half the lift, one dim blue lamp, nothing printed |\n| `plum-slant` | Slanted panels on plum, rose and gold lamps, pink dots |\n| `frost-square` | Light: pale blue-grey squares, one sky lamp, slate seams and dots |\n| `cobalt-capsules` | Spaced blue metal bars on black; here the pointer lifts the bars near it |\n\n## Mount it\n\nThe host is the hero section. The canvas goes in as its first child, behind the content, and\nnever takes pointer events. Pass the heading as `print` to paint it onto the tiles.\n\n```html\n<section class=\"hero\" id=\"hero\">\n  <h1 id=\"headline\">Design that <span class=\"grad\">moves like a plate<\/span> under your hand.<\/h1>\n<\/section>\n<script src=\"dist\/plate-effects.iife.js\"><\/script>\n<script>\n  const plate = Plate.mount(document.getElementById('hero'), 'graphite-violet', {\n    print: document.getElementById('headline'),\n  });\n  \/\/ later: plate.destroy();\n<\/script>\n```\n\nES module and React:\n\n```tsx\nimport { mount } from '.\/plate-effects.js';\n\nuseEffect(() => {\n  const plate = mount(heroRef.current!, 'bone-ink', { print: headingRef.current });\n  return () => plate.destroy();\n}, []);\n```\n\n`mount(host, preset, options)` takes a preset name or a preset object (copy one from\n`PRESETS` and change any field). Options: `print` (the element to paint), `clock: 'manual'`\n(draw only on `step()` and `pointer()`, for tests, posters and video capture), `dpr`, and\n`reducedMotion` (force it on or off). The instance has `pointer(x, y)`, `leave()`,\n`step(ms)`, `render()`, `ready` (resolves after fonts load and the heading is printed) and\n`destroy()`.\n\n**Posters and video.** Use `clock: 'manual'`, wait for `ready`, call `pointer(250, 450)` then\n`step(1200)`, and capture. A background tab gets no animation frames, which is why the manual\nclock exists. The gallery takes `?poster&p=<preset>&at=250,450` to do the same.\n\n## How the heading is printed\n\n1. Wait for `document.fonts.ready` and a short settle, so the layout is final.\n2. Read each element's computed font, letter spacing, text transform and colour (or its\n   `background-clip: text` gradient) before changing anything.\n3. Measure every word's box with a DOM Range and paint the word at that exact spot into a\n   layer the size of the hero. A gradient span that wraps is laid out the way CSS does it: as\n   if its line pieces sat side by side.\n4. Make the DOM copy transparent (colour, text fill, text shadow, and the clipped gradient\n   background). The text stays selectable and in the accessibility tree.\n5. At rest the layer is drawn once on top of the plate, so the heading looks exactly like a\n   normal heading. While tiles lift, each lifted tile carries its piece through an affine map of\n   its own corners, clipped a little inside its edges so the seams cut the letters.\n6. `destroy()` restores every inline style it touched.\n\n## Rules every plate keeps\n\n- **2D canvas only.** No WebGL, no libraries, no network, no `filter: blur()`.\n- **Nothing drawn at rest.** One frame at mount and after a resize; frames run only while a\n  lift is moving and stop when every tile has settled.\n- **Reduced motion: one still frame.** The pointer changes nothing and the heading is left\n  alone (not printed).\n- **Forced colours: nothing.** The canvas is hidden and the heading left alone; it comes back\n  if forced colours switch off.\n- **Device pixel ratio capped at 2.**\n- **No sideways scroll at 375 px.** The canvas is `position: absolute; inset: 0` inside the\n  host, which gets `isolation: isolate` (and `position: relative` if it was static).\n- **Heading contrast at rest.** Each preset's suggested heading colours (`ink`, `accent`) were\n  checked against its tile colour: the ink clears 4.5:1 and every accent clears 3:1, which is\n  WCAG AA for large text. If you change colours, check them again.\n- **Never steal pointer events.** The canvas has `pointer-events: none`; listeners sit on the\n  host and are passive.\n\n## Files\n\n- `src\/math.ts` pure maths: camera, tilings, field, easing, polygon helpers, gradient reader.\n  Tested by `tests\/math.test.mjs` (`node scripts\/build.mjs` then `node --test tests\/`).\n- `src\/plate.ts` the renderer and `mount()`. `src\/print.ts` the heading printer.\n  `src\/presets.ts` the fifteen presets.\n- `scripts\/build.mjs` builds `dist\/plate-effects.js` (ESM), `dist\/plate-effects.iife.js`\n  (global `Plate`), `dist\/plate-math.js` (for the tests) and `gallery\/live.html`. Set\n  `ESBUILD=\/path\/to\/esbuild` or have `esbuild` on your PATH.\n- `posters\/` 30 JPEGs, rest and hover for every preset.\n\n## Where it came from\n\nWritten by DevTribe Labs from a description of how a tilted tile plate looks and moves. No\nother product's code is in this kit.\n","use_cases":["Apply a dynamic tile animation to a hero section for a visually striking landing page","Customize the plate effect with different color schemes and lighting for branding consistency","Integrate the effect into a React application using ES modules for interactive animations"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/DevDadTribe\/toolbox\/blob\/5f44c242b6e4997ebc34dec7202932c4aa6701f6\/skills\/plate-effects\/SKILL.md","source_commit":"5f44c242b6e4997ebc34dec7202932c4aa6701f6","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:41:57.000000Z","updated_at":"2026-11-29T10:53:02.000000Z","seo_title":"Apply Animated Plate Effects to Hero Sections","seo_description":"Use predefined plate effects to create visually engaging hero sections with dynamic tile animations and customizable options for control and styling.","seo_keywords":["plate effects","hero section animation","tile animation","CSS animation","customizable visual effects","react animation","ES module animation"]}}