Skip to main content
rule CX Codex

ai-tracking-box — Claude Code rule: what it does, how to install

ai-tracking-box generates an animated target bounding box with corner brackets and oscillating coordinates to simulate computer vision tracking in GSAP.

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/ai-tracking-box.md
Open on GitHub

What ai-tracking-box does

This rule sets up the layout and styling for a computer vision target tracker. The markup arranges a central target mascot, four L-shaped bracket corner elements, and an attached tag displaying the predicted class with a percentage value. It relies on high-contrast styling with bright border accents on a dark radial backdrop.

Motion relies entirely on a GSAP timeline object. The bounding container pops in with an elastic scale transition, then enters a continuous tracking cycle. Both the target element and the surrounding frame drift along sine and cosine paths, while box dimensions slightly jitter to replicate live computational recalculation.

Running this component requires GSAP 3 loaded in the host environment; without the GSAP runtime, timeline playback fails immediately. Timing offsets, sine drift amplitude, and confidence range limits are configured via explicit script constants.

What it helps with

  • build an animated bounding box with L-bracket corners
  • simulate computer vision object tracking using GSAP timelines
  • animate oscillating target positions and fluctuating box dimensions
  • render a jittering detection confidence score above a target

Example prompts for the agent

  • Create an animated target tracking frame using the ai-tracking-box rule
  • Tune the drift amplitude and bounce scale for the detection box timeline
  • Implement the GSAP sine path tracking scene for object visualization

How to install ai-tracking-box

Manually: put the files in place

.claude/rules/ai-tracking-box.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 ai-tracking-box

How to install ai-tracking-box in Claude Code?

Place the rule configuration at .claude/rules/ai-tracking-box.md. Claude Code will automatically adopt the layout patterns and timeline configurations in subsequent responses.

What does ai-tracking-box do?

It provides HTML, CSS, and GSAP timeline scripts that mimic machine learning object recognition. The box follows a target along sine curves while fluctuating in scale and updating its confidence rating.

What external libraries does this rule require?

The animation script requires GSAP 3. It depends on gsap.timeline with paused initialization and the back.out easing curve.

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set101

The whole set →
sine-wave-loop sine-wave-loop — a GSAP rule that gives a settled scene element light jitter, or one bounded breathing loop, driven by Math.sin once its entry animation ends. CX Codex +1 ★ 78,316repo stars avatar-cloud-network avatar-cloud-network guides the agent in creating an elliptical community reveal scene with a center hub and SVG lines. Built for social proof animations powered by GSAP. CX Codex +1 ★ 78,316repo stars viewport-change viewport-change — a rule that teaches the agent a virtual camera in GSAP scenes: zoom, pan and focus-lock on a moving element, all through one wrapper. CX Codex +1 ★ 78,316repo stars coordinate-target-zoom coordinate-target-zoom — a rule that teaches the agent to zoom into an element displaced from viewport center by pairing scale with counter-translation — the target lands at center after the zoom. CX Codex +1 ★ 78,316repo stars spring-pop-entrance The spring-pop-entrance rule describes a smooth scale-in for one element or a staggered group. Use it for interface elements that should arrive on screen without bouncing. CX Codex +1 ★ 78,316repo stars depth-scatter-assemble depth-scatter-assemble — a rule for scenes where glyphs, cards or logo pieces arrive out of a turning 3D cloud and land in a flat layout. The reverse also works. CX Codex +1 ★ 78,316repo stars ambient-glow-bloom ambient-glow-bloom defines code patterns for soft backdrop glow and light sweeps on key elements. Guides code assistants to write seek-safe GSAP timelines without infinite loops. CX Codex +1 ★ 78,316repo stars music-to-video music-to-video turns a music track into a beat-synced HyperFrames video. Use it for lyric-style clips, slideshows, or kinetic promo visuals with optional media. CX Codex +1 ★ 78,316repo stars

Project sponsors

Companies that keep this analytics open