Skip to content
Website Sections

CTAReveal

A call to action that opens from a thin band of light when it comes on screen. Words rise in, then the buttons, and a soft light follows the pointer.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
titlestring—The headline.
textstring—Line under the title.
eyebrowstring—Small line above the title.
childrenReactNode—Buttons or links.
fromstring"#4c1d95"Panel colour at one corner.
tostring"#0e7490"Panel colour at the other corner.
glowstring"#67e8f9"Colour of the pointer light and the opening flash.
oncebooleantruefalse replays each time it comes back on screen.
headingAsElementType"h2"Heading tag.
classNamestring"bg-[#0b0a14] px-5 py-16"Set padding here. The panel sits inside.