# css-marker-patterns

The css-marker-patterns rule shows five ways to mark text with plain CSS and GSAP timelines: a marker sweep, wobbly circle, radiating lines, wavy underline, and cross-out.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 78316 repo stars
- Author: calesthio
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/hyperframes-animation/rules/css-marker-patterns.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/css-marker-patterns

## What it does

Each of the five MarkerHighlight.js drawing modes gets its own recipe here: markup with `mh-*` classes, the CSS that places it, and a tween you drop into a timeline. That covers a yellow bar behind a phrase, a hand-drawn ring, rays out of a word, a squiggle underneath, and hatch lines over text you want to play down.

The ring is a `border-radius: 50%` shape rotated a few degrees, with `.tight`, `.rounded` and `.ellipse` variants alongside. Rays are separate bars whose `--angle` and `--len` custom properties set direction and reach; the notes suggest lengths between 40 and 80px so the fan looks drawn rather than machined. The squiggle is an SVG path sized with `getTotalLength` and revealed through `stroke-dashoffset`.

Nothing moves until GSAP is on the page and you build the `tl` timeline yourself: the snippets call `tl.to` and `gsap.set`, but the timeline object is yours to create. Swap in your own ids and classes too — this is a template, not a packaged component.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/css-marker-patterns.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/css-marker-patterns.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/css-marker-patterns.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/css-marker-patterns.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/css-marker-patterns.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/hyperframes-animation/rules/css-marker-patterns.md

## When to use it
- sweep a marker behind a headline in a composition
- ring a keyword with a hand-drawn circle
- draw a wavy SVG underline as text appears
- cross out an old price with angled lines
- fan rays around a word using CSS variables

## Example prompts
- Add a marker sweep with `mh-highlight-wrap` and tween `#hl-1` inside the GSAP timeline.
- Wrap the word `IMPORTANT` in `mh-circle-ring` and use the `.tight` variant.
- Animate `#scribble-1` by measuring `getTotalLength` and easing `strokeDashoffset` to zero.

## Similar
- [css-animations](https://affpapa.org/en/nevibecode/skills/css-animations.md) — skill · 271 installs
- [hyperframes-keyframes](https://affpapa.org/en/nevibecode/skills/hyperframes-keyframes.md) — skill · ★ 328 repo stars
- [css-animation-patterns](https://affpapa.org/en/nevibecode/skills/css-animation-patterns.md) — skill · 196 installs
- [svg-animation](https://affpapa.org/en/nevibecode/skills/svg-animation.md) — skill · 4400 installs
- [chromatic-glitch](https://affpapa.org/en/nevibecode/rules/chromatic-glitch.md) — rule · ★ 328 repo stars
- [tailwind-css-patterns](https://affpapa.org/en/nevibecode/skills/tailwind-css-patterns.md) — skill · 18100 installs

From the same set: [calesthio/openmontage](https://affpapa.org/en/nevibecode/by/calesthio/openmontage.md) — 101 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
