> ## Documentation Index
> Fetch the complete documentation index at: https://rive-layout-animation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Layout Animation

> Animate how children reposition when content reflows within a Layout.

export const Marketplace = ({href, children}) => {
  const hrefWithTracking = `${href}?utm_source=docs&utm_medium=docs_link_card&utm_campaign=docs_to_marketplace_links`;
  return <Card title="Learn by remixing" icon="external-link" href={hrefWithTracking} arrow="true" horizontal>
      {children ? children : "Open this file on Marketplace, then click Remix to experiment in the Rive Editor."}

    </Card>;
};

export const VideoEmbed = ({src}) => {
  return <div style={{
    height: "100%"
  }}>
      <video src={src} autoPlay loop muted playsInline style={{
    width: "100%",
    height: "100%",
    borderRadius: 0,
    margin: 0,
    display: "block",
    objectFit: "cover",
    backgroundColor: "transparent"
  }} />
    </div>;
};

When a Layout resizes or its content changes, its children may move to new positions. Layout animation controls how children transition to their new positions, including the duration and easing.

<img src="https://mintcdn.com/rive-layout-animation/DDLtoGv0WSxCkGQ9/images/editor/layouts/animate-layouts.gif?s=cce4b09ec71bacf4aacdc309694384a0" alt="Animated layout resizing" width="600" height="432" data-path="images/editor/layouts/animate-layouts.gif" />

<Marketplace href="https://rive.app/community/files/28493-53866-enable-layout-animation" />

## Adding Layout Animation

<Steps>
  <Step title="Add a Layout Animation">
    Select a **Layout** and click the **+** button in the **Enable Layout Animation** section of the Inspector.
  </Step>

  <Step title="Select a Mode">
    * **None:** Disable Layout animation.
    * **Inherit:** Use the Layout animation settings from the parent Layout.
    * **Custom:** Define Layout animation settings for the selected Layout.
  </Step>

  <Step title="Customize the Animation">
    If you select **Custom**, set the duration and easing for the animation.
  </Step>
</Steps>

<VideoEmbed src="https://static.rive.app/video/enable-layout-animation.mp4" />
