Motion UIComponentsComponent

Footer reveal

A sticky footer that sits under the page at z-index -1 and fades, scales and sharpens as scroll uncovers it.

npx shadcn@latest add @motion/footer-reveal

API reference

Components

<FooterReveal />

Page root that owns reveal progress and publishes it via context.

children?

ReactNode

FooterRevealContent then FooterRevealFooter.

className?

string

Merged onto the root. Never add overflow clipping here.

<FooterRevealContent />

Page body layer above the sticky footer.

children?

ReactNode

Page body that covers the sticky footer until scroll.

className?

string

Merged onto the content layer. Needs an opaque background.

<FooterRevealFooter />

Sticky footer that fades, scales and sharpens as scroll uncovers it.

children?

ReactNode

Footer contents.

className?

string

Merged onto the sticky footer shell.

Hooks

useFooterRevealProgress

Raw reveal progress MotionValue from the enclosing FooterReveal.

useFooterRevealProgress(): MotionValue<number>

Related examples