--- title: "Code Scroll To Line" description: "The camera scrolls a long file to bring a target line to center and spotlights it — for walking through real modules." --- ## Install ```bash Terminal npx hyperframes add code-scroll ``` That writes one file: `compositions/code-scroll.html`. ## Add it to your video It runs for 6 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` `scroll` `developer`.