CTA

Floating enroll button with a price

A floating enroll button: pinned to the bottom of the screen, it slides up once the first screen has scrolled out of view and hides while pricing or the final call are on screen — so the button isn't duplicated next to prices. A caption with a green dot on the left, the price in a pill on the right.

What you can change

  • label, price, href, caption
  • showAfter, hideNear, hideAtBottom, placement
  • accent, tone

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.ru/c/cta-018?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

For developers

The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.

Technical notes

One file, zero dependencies, “use client” for visibility. The root is position:fixed at the bottom with safe-area, pointer-events:none; the bar is pointer-events:auto, translateY(100 %)→0 over .55 s on data-show. showAfter is the threshold selector: an IntersectionObserver sets passed once the element is above the viewport; hideNear lists selectors whose intersection (rootMargin -20 % at the bottom) hides the button; hideAtBottom hides it near the page bottom. Without showAfter the button is visible at once. placement=static puts the button in the flow (for previews and docs). The caption shows from 40rem (container query). A hidden bar is aria-hidden with tabIndex=-1 on the link. Palette --vibeui-cta-018-* with light-dark: white and cool grey, an indigo accent, a lime marker for highlights; Unbounded and Inter via <link precedence> from Google Fonts with system fallbacks. tone pins the scheme, accent, ink and background override colours.

Tags

  • course
  • education
  • edtech
  • landing
  • cta
  • floating
  • sticky
  • button
  • price
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…