# Float

<figure><img src="/files/JiUk8Xz9x3UuxLCpYuJl" alt=""><figcaption></figcaption></figure>

## Overview

A float block that wraps other theme or app blocks and positions them absolutely according to x and y coordinate settings. Supports responsive positioning for different desktop and mobile layouts with rotation effects for dynamic floating content.

## Common use cases

* Position blocks at specific coordinates on the page for floating elements like tooltips, badges, or overlays
* Ensure the parent container has position: relative for proper positioning
* Use responsive positioning for different desktop and mobile layouts
* Apply rotation effects for dynamic floating content

## Compatible blocks

The following blocks can be nested within this block:

* All theme blocks
* App blocks

## Block settings

### General

| Setting                | Description                                                                       | Options                   |
| ---------------------- | --------------------------------------------------------------------------------- | ------------------------- |
| Show advanced settings | Reveals enable color difference, visibility, load animation, and scroll animation | 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>                                       |
| Enable color difference | Applies mix-blend-difference for visual contrast | <p>Checkbox (default: false)<br><br>Visible when <strong>Show advanced settings</strong> is on</p>                                                                                         |

### Style

| Setting         | Description                   | Options                                                                                                            |
| --------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| 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 (desktop)

| Setting              | Description                                        | Options                   |
| -------------------- | -------------------------------------------------- | ------------------------- |
| Vertical alignment   | Vertical position percentage on desktop            | 0 - 100 % (default: 50)   |
| Horizontal alignment | Horizontal position percentage on desktop          | 0 - 100 % (default: 50)   |
| Width                | Width of the floating block as viewport percentage | 5 - 100 % (default: 30)   |
| Rotation             | Rotation angle in degrees                          | 0 - 360 deg (default: 15) |

### Layout (mobile)

| Setting              | Description                                        | Options                   |
| -------------------- | -------------------------------------------------- | ------------------------- |
| Vertical alignment   | Vertical position percentage on mobile             | 0 - 100 % (default: 50)   |
| Horizontal alignment | Horizontal position percentage on mobile           | 0 - 100 % (default: 50)   |
| Width                | Width of the floating block as viewport percentage | 5 - 100 % (default: 70)   |
| Rotation             | Rotation angle in degrees                          | 0 - 360 deg (default: 15) |

### 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> |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.brickspacelab.com/slab/content/blocks/layout/float.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
