--- title: "Line Swap" description: "A masked full-line beat replacement: line A holds center then exits up through an overflow-hidden mask as line B enters bottom-up on the same beat, with an optional accent underline drawing beneath one word of line B." --- import { InstallCommand } from "/snippets/install-command.jsx"; import { VariablesExplorer } from "/snippets/variables-explorer.jsx"; ```html line-swap.html Line Swap ``` ## Install That writes one file: `compositions/components/line-swap.html`. ## Paste it into your composition Open `compositions/components/line-swap.html` and copy what is inside into your own composition. A component has no size or duration of its own. It takes both from the composition you paste it into. {/* hf:generated-footer */} Tagged `motion-primitive` `text-effects` `swap` `beat` `deterministic`. ## Related topics - [Browse the complete Catalog](/catalog) - [Add assets and Catalog items in Studio](/studio/assets-and-blocks) - [Build a richer composition](/go-further)