Skip to content

lookbkdev/lookbk-skills / skills/aperture-reveal-hero

aperture-reveal-hero

Verified

Build a website hero that looks through a real lens iris whose aperture lives in the headline - nine curved blades, each turning on its own pin, centred in the counter of an O so that at f/22 the opening fits inside the letter and opened up the scene pours out of it. The scene behind is re-rendered for every f-number (depth of field, bokeh in the iris's own shape, diffraction stars stopped down, exposure), the ring clicks from stop to stop and the pointer turns it. Two scenes: a timber pier with lanterns at night (dark), or a stone cloister at noon. One self-contained HTML page plus a paste-in embed on the Motion Heroes kit v2 lockup or editorial composition, checked at four widths for text size, contrast and clearance, with a baked still picture for WebGL failure and reduced motion, and a 1080p MP4 of one 12 s loop. Use for camera and lens makers, photographers, eyewear, opticians, studios, cafes, hotels or any brand whose promise is seeing clearly or letting the light in.

scripts/inline.mjs

View on GitHub
// Inline Markdown in page text: `code`, [links](url), **bold** and _italic_.
import { h } from './markup.mjs'

// Links other than http, https, mailto, anchors and relative paths are
// dropped, so a pasted javascript: link can't reach the page.
const safeHref = (url) =>
  /^(https?:|mailto:|#|\/|\.\/|\.\.\/)/i.test(url) ||
  !/^[a-z][\w+.-]*:/i.test(url)

const INLINE =
  /(`+)([\s\S]*?[^`])\1(?!`)|\[([^\]]+)\]\(((?:[^()\s]|\([^()\s]*\))+)(?:\s+"[^"]*")?\)|\*\*(.+?)\*\*|__(.+?)__|\*([^*\s](?:.*?[^*\s])?)\*|(?<![\w])_([^_\s](?:.*?[^_\s])?)_(?![\w])|<(https?:\/\/[^>\s]+)>/g

/** Inline Markdown as element-tree children. */
export function inline(text) {
  const out = []
  let last = 0
  for (const m of String(text).matchAll(INLINE)) {
    if (m.index > last) out.push(text.slice(last, m.index))
    last = m.index + m[0].length
    const [, , code, label, href, b1, b2, i1, i2, auto] = m
    if (code !== undefined) out.push(h('code', null, code.trim()))
    else if (label !== undefined)
      out.push(safeHref(href) ? h('a', { href }, inline(label)) : inline(label))
    else if (b1 !== undefined || b2 !== undefined)
      out.push(h('strong', null, inline(b1 ?? b2)))
    else if (i1 !== undefined || i2 !== undefined)
      out.push(h('em', null, inline(i1 ?? i2)))
    else if (auto) out.push(h('a', { href: auto }, auto))
  }
  if (last < text.length) out.push(text.slice(last))
  return out.flat()
}

/** Inline Markdown as plain text, for limits and head tags. */
export const plain = (text) =>
  String(text ?? '')
    .replace(/\[([^\]]+)\]\((?:[^()]|\([^()]*\))*\)/g, '$1')
    .replace(/`([^`]+)`/g, '$1')
    .replace(/(\*\*|__|\*|_)(.+?)\1/g, '$2')
    .replace(/\s+/g, ' ')
    .trim()
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 196kUpdated Claude CodeCodexVerifiedInstall