> For the complete documentation index, see [llms.txt](https://codalin.gitbook.io/nodalin-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codalin.gitbook.io/nodalin-docs/nodes-reference/sources/bouncing.md).

# Bouncing

<table data-header-hidden data-first-column-sticky><thead><tr><th width="141.6597900390625"></th><th></th></tr></thead><tbody><tr><td><div><figure><img src="https://937151318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F44MuVIHBk5o5yfcGn64w%2Fuploads%2FxFZG3DJHx0yN3Mtz2svC%2Fimage.png?alt=media&amp;token=96b3f6de-3a69-43e8-b06f-aa4e5b185924" alt="" width="76"><figcaption></figcaption></figure></div></td><td>Animates a bouncing ball that rebounds off canvas edges. Control horizontal and vertical speed, color, and optionally replace the ball with any input shape.</td></tr></tbody></table>

<table><thead><tr><th width="155.20703125">Property name</th><th width="405.30859375">Description</th><th>Compatible datatype</th></tr></thead><tbody><tr><td>xspeed</td><td>Horizontal speed</td><td>number</td></tr><tr><td>yspeed</td><td>Vertical speed</td><td>number</td></tr><tr><td>color</td><td>Color of the figure</td><td>color</td></tr><tr><td>figure</td><td>Overrides the ball with the input figure</td><td>figure</td></tr><tr><td>zindex</td><td>Controls which element appears on top when elements overlap; higher values sit above lower ones.</td><td>number</td></tr></tbody></table>

{% hint style="info" %}
The `zindex` increases automatically, unless there's a connection to it.
{% endhint %}

> *The Bouncing Node was one of the first nodes we developed for Nodalin. It demonstrates a few basic behaviors and properties, works on its own, and responds to the rendering dimensions. With the ability to accept other Source nodes and adjustable properties, it showcases Nodalin’s approach to modularity, ease of use, and composable node design.*

### Example Projects

[Futura Junior](https://app.nodalin.xyz/project/ad0d4fd1-2bd8-4001-84a6-4abd3dd1e615)
