
Grid Tunnel
WebGL
A compact animated button where a dot expands into a fill state for card actions, graphic CTAs, and branded interfaces.
Dot Fill Button gives a link-styled CTA a small, useful moment of feedback: a dot expands into feedback.
Use it where a CTA needs to feel responsive and intentional, not theatrical. A button should confirm action, state, or direction; it should not become a tiny stage play that delays the click.
In production, the risk is not letting motion stand in for the control. Real buttons and anchors, visible focus, instant response, and clear loading and disabled states come first; the effect is a layer on top of a control that already works.
import DotFillBtn from "@/components/effects/dot-fill-button"; export default function Page() { return ( <div className="h-screen w-screen flex items-center justify-center relative"> <DotFillBtn className="" href="#" btnText="Try demo" bgColor="#ff6b00" textColor="#ffffff" hoverTextColor="#ff6b00" /> </div> );}An online learning platform can use Dot Fill Button for the Try demo action on each course card. On hover the small dot beside the label expands to fill the whole button, and the label rolls to its new color, giving each card a compact, graphic response.
The outcome is consistency. Every card action shares one recognizable interaction, the button never moves out from under the pointer, and the link opens straight away.
Not for destructive actions, unclear states, or places where animation hides the label or delays activation.
Keep feedback fast, avoid layout-triggering letter movement, and preserve instant activation.
Use real buttons or anchors, visible focus-visible styles, and clear loading/disabled states. Touch targets should stay large enough on mobile.
| Prop | Type | Default | Description |
|---|---|---|---|
bgColor | color | #ff6b00 | Resting button background color. |
textColor | color | #ffffff | Resting label color. |
hoverTextColor | color | #ff6b00 | Label color while filled. |
dotColor | color | #ffffff | Dot color. |
Use it when a compact CTA or card action needs a dot expanding into feedback without delaying the action.
It always renders a real `<a>` (href defaults to "#") and passes anchor props through, so it suits navigation. For a non-navigating action, adapt the source to render a `<button>`.
As a native anchor it is focusable and activates with Enter, but the dot fill only runs on mouse hover or touch, not on keyboard focus, so add your own focus-visible style.
Loading should be visually clear and programmatically communicated without hiding the label.
With reduced motion, the dot fill, colour change, and label roll still happen on hover, but instantly, with no transition or per-letter stagger.
Need a custom effect? Tell us what to create.