--- url: /reference/items/Marquee/examples.md --- # Examples ## Horizontal The default direction, and the same marquee with a negative `sensitivity`, which reverses it. :::code-group ```js import { registerComponent } from '@studiometa/js-toolkit'; import { Marquee } from '@studiometa/ui'; registerComponent(Marquee); ``` ::: ## Skewed by the velocity The skew is CSS: the track's `transform` reads `--marquee-velocity` and clamps it. The component knows nothing about it. :::code-group ```js import { registerComponent } from '@studiometa/js-toolkit'; import { Marquee } from '@studiometa/ui'; registerComponent(Marquee); ``` ::: ## Circular The same class, a different `transform`. :::code-group ```js import { registerComponent } from '@studiometa/js-toolkit'; import { Marquee } from '@studiometa/ui'; registerComponent(Marquee); ``` ::: ## Circular, faster and reversed :::tip Why are there two radius parameters? * `outer_radius` sets the size of the **svg viewBox**. `radius` sets the size of the `` the circular text is written on. * `outer_radius` needs to be greater in order to **avoid cutting** the text, since the `` always hides the overflowing content. ::: :::code-group ```js import { registerComponent } from '@studiometa/js-toolkit'; import { Marquee } from '@studiometa/ui'; registerComponent(Marquee); ``` :::