--- title: "Code Highlight Sweep" description: "A highlight band sweeps across a target line while the surrounding context dims — draws the eye to one line. `line` is 0-based: `line: 1` targets the second displayed line (unlike code-scroll, whose target is 1-based)." --- ## Install ```bash Terminal npx hyperframes add code-highlight ``` That writes one file: `compositions/code-highlight.html`. ## Add it to your video It runs for 5 seconds at 1920×1080. Paste this into your composition: ```html index.html
``` Move it in time with `data-start`. Put it on a different timeline row with `data-track-index`. See [data attributes](/concepts/data-attributes) for the rest. {/* hf:generated-footer */} Tagged `code` `code-animation` `highlight` `developer`. ## Related topics - [Browse the complete Catalog](/catalog) - [Add assets and Catalog items in Studio](/studio/assets-and-blocks) - [Build a richer composition](/go-further)