Skip to main content
rule CX Codex

css-marker-patterns — Claude Code rule: marker highlights in CSS and GSAP

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.

AGPL-3.0 ★ 78,316 updated 2026-10-24

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/css-marker-patterns.md
Open on GitHub

What css-marker-patterns 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.

What it helps with

  • 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 for the agent

  • 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.

How to install css-marker-patterns

Manually: put the files in place

.claude/rules/css-marker-patterns.md

The paths frontmatter field limits the files

Step by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use

Questions about css-marker-patterns

How to install css-marker-patterns in Claude Code?

Put the file at .claude/rules/css-marker-patterns.md in your project. Claude Code then reads it as a project rule.

What does css-marker-patterns do?

It supplies markup, CSS and GSAP tweens for five marker effects: highlight, circle, burst, scribble and sketchout. Aimed at deterministic rendering in HyperFrames compositions.

Does it need GSAP?

Yes. Every animation shown is a gsap.set or tl.to call, and the tl timeline has to be created in your own composition code.

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set101

The whole set →
kinetic-beat-slam The kinetic-beat-slam rule shapes short phrases into beat-led kinetic typography, with separate entrances and a locked final stack for punchy text scenes. CX Codex +1 ★ 78,316repo stars threejs-world-generation threejs-world-generation turns a written brief into one continuous Three.js world with terrain, regions, scattered props and a camera flight. Made for cinematic scenes rather than single models. CX Codex +1 ★ 78,316repo stars colors colors is a Claude Code rule covering ManimGL palettes, gradients, and GLSL shading for coloring mathematical animations. CX Codex +1 ★ 78,316repo stars cli The cli rule guides Claude Code through running ManimGL scenes, adjusting render options, and entering interactive debugging. Useful when working with manimgl in a project. CX Codex +1 ★ 78,316repo stars 3d Instructions for building ManimGL 3D scenes: camera frame controls, geometric primitives, textured surfaces, and screen-space labels. CX Codex +1 ★ 78,316repo stars creation-animations The creation-animations rule explains how to stage object, text, and formula entrances in ManimGL. Use it when a scene needs controlled creation effects. CX Codex +1 ★ 78,316repo stars config Covers how ManimGL reads custom_config.yml: output folders, camera and window options, styles. An agent edits the right keys instead of guessing. CX Codex +1 ★ 78,316repo stars provider-refresh-oct23 provider-refresh-oct23 configures strict API contracts and routing logic for multimedia generation models. Keeps agent calls aligned with provider updates across speech, image, and video backends. CX Codex +1 ★ 78,316repo stars

Project sponsors

Companies that keep this analytics open