# Marquee

<figure><img src="https://3723856256-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGnixyIfIYFWroNtVmZo6%2Fuploads%2Fgit-blob-9521da020a1367c954014cabd2558a78e8635a00%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

## Overview

A marquee layout block that creates a scrolling effect for its child blocks. It supports various customization options such as animation duration, pause on hover, reverse animation, and alignment settings. This block is ideal for showcasing featured content in a dynamic and engaging manner.

## Common use cases

* Highlight important announcements or featured products with a scrolling marquee
* Adjust animation settings to create a smooth and visually appealing effect
* Consider the content length when setting the animation duration to avoid abrupt loops
* Use pause on hover for better user interaction

## Compatible blocks

The following blocks can be nested within this block:

* [Rich text](https://help.brickspacelab.com/slab/content/blocks/basics/rich-text)
* [Image](https://help.brickspacelab.com/slab/content/blocks/basics/image)
* [Icon](https://help.brickspacelab.com/slab/content/blocks/basics/icon)
* [Button](https://help.brickspacelab.com/slab/content/blocks/basics/button)
* [Container](https://help.brickspacelab.com/slab/content/blocks/layout/container)

## Block settings

### General

| Setting                | Description                                                                        | Options                   |
| ---------------------- | ---------------------------------------------------------------------------------- | ------------------------- |
| Show advanced settings | Reveals enable reverse animation, visibility, load animation, and scroll animation | Checkbox (default: false) |

### Content

| Setting                  | Description                                     | Options                                                                                            |
| ------------------------ | ----------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| Animation duration       | Duration of the marquee animation in seconds    | 1 - 90 s (default: 60)                                                                             |
| Enable pause on hover    | Pauses animation when hovering over the marquee | Checkbox (default: false)                                                                          |
| Enable reverse animation | Reverses the scroll direction                   | <p>Checkbox (default: false)<br><br>Visible when <strong>Show advanced settings</strong> is on</p> |

### Spacing

| Setting                   | Description                                | Options                   |
| ------------------------- | ------------------------------------------ | ------------------------- |
| Top spacing               | Padding space at the top of the marquee    | 0 - 300 px (default: 0)   |
| Bottom spacing            | Padding space at the bottom of the marquee | 0 - 300 px (default: 0)   |
| Enable horizontal padding | Adds horizontal padding around the marquee | Checkbox (default: false) |

### Color

| Setting      | Description                             | Options                                                                                                                                                                                    |
| ------------ | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Color scheme | Controls the background and text colors | <p>• Body<br>• Neutral<br>• Accent 1<br>• Accent 2<br>• Accent 3<br>• Shade 1<br>• Shade 2<br>• Shade 3<br>• Primary<br>• Secondary<br>• Tertiary<br>• Blur<br>• Transparent (default)</p> |
| Color border | Controls the border color               | <p>• Body<br>• Subtle (default)<br>• Strong<br>• Primary<br>• Secondary<br>• Tertiary<br>• None<br><br>Visible when border position is not blank</p>                                       |

### Style

| Setting          | Description                       | Options                                                                                                            |
| ---------------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| Block max height | Maximum height for block elements | 0 - 500 px (default: 100)                                                                                          |
| Border position  | Controls where borders appear     | <p>• None (default)<br>• Top<br>• Bottom<br>• Left<br>• Right<br>• Top and bottom<br>• Left and right<br>• All</p> |

### Layout

| Setting            | Description                            | Options                                        |
| ------------------ | -------------------------------------- | ---------------------------------------------- |
| Vertical alignment | Controls vertical alignment of content | <p>• Top<br>• Middle (default)<br>• Bottom</p> |

### Display

| Setting          | Description                          | Options                                                                                                                                                                                                                                          |
| ---------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Visibility       | Controls when the block is visible   | <p>• All (default)<br>• Mobile only<br>• Desktop only</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on</p>                                                                                                               |
| Load animation   | Animation when the block first loads | <p>• None (default)<br>• Fade<br>• Fade up<br>• Offset fade<br>• Offset fade up</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on and <strong>Scroll animation</strong> is <strong>None</strong></p>                      |
| Scroll animation | Adds scroll-triggered animations     | <p>• None (default)<br>• Fade<br>• Slide up<br>• Slide down<br>• Slide left<br>• Slide right<br>• Zoom</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on and <strong>Load animation</strong> is <strong>None</strong></p> |
