Loading
Loading
Loading
mobile footer

Build the Interaction Layer Your Website is Missing.

Browse All EffectsBrowse All EffectsBrowse All EffectsUpgrade to ProUpgrade to ProUpgrade to Pro

70+ effects free, forever. No credit card.

© 2026 Hyperiux. All Rights Reserved.

AI Component CatalogueHey AI, Learn About Us
Platform

Vault

  • Documentation
  • Pricing
  • Blog
  • Community
  • NPM
  • MCP

Categories

  • All Effects
  • WebGL
  • Text
  • Backgrounds
  • Buttons
  • Carousels
  • Scroll
  • Components
  • Navigation
  • Cursor
  • Transitions
  • Loaders

Documents

  • Introduction
  • Installation
  • CLI
  • Dependencies
  • License

Legal

  • License Agreement
  • Terms of Service
  • Privacy Policy
  • Refund Policy
Socials
  • Twitter / X
  • LinkedIn
  • GitHub
  • Instagram
Contact Us
  • hello@hyperiux.com
New effects, in your inbox

Every new drop, plus the occasional behind-the-scenes build. No spam. Unsubscribe anytime.

All Effects
Featured ComponentsText AnimationsAnimated BackgroundsAnimated ButtonsCarousel EffectsScroll EffectsCreative ComponentsNavigationsCursor EffectsTransitionsLoadersWebGL & 3D Effects
Templates
IntroductionInstallationCLIDependenciesLicense
PricingBlogGithubNPMMCP Doc
Loading
Home/effects/Dot Fill Button

Dot Fill Button

A compact animated button where a dot expands into a fill state for card actions, graphic CTAs, and branded interfaces.

CSS
DemoDemoDemo

Tune the Real Props

Bg Color

Resting button background color.

Text Color

Resting label color.

Hover Text Color

Label color while filled.

Dot Color

Dot color.

Overview

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.


Usage Code

page
1import DotFillBtn from "@/components/effects/dot-fill-button";2 3export default function Page() {4    return (5 6        <div className="h-screen w-screen flex items-center justify-center relative">7                   <DotFillBtn8                    className=""9                        href="#"10                        btnText="Try demo"11                        bgColor="#ff6b00"12                        textColor="#ffffff"13                        hoverTextColor="#ff6b00"14                    />15        </div>16 17    );18}

Example Production Use Case

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.


Best Used For

  • Compact card actions and graphic CTA systems where dot expansion matches the visual language.
  • Interfaces where the fill can confirm hover or a tap without moving the target.
  • Dot Fill Button adds feedback to an action without weakening semantics, focus, or activation speed.

Not For

Not for destructive actions, unclear states, or places where animation hides the label or delays activation.


Performance Budget

Keep feedback fast, avoid layout-triggering letter movement, and preserve instant activation.


Accessibility and Mobile

Use real buttons or anchors, visible focus-visible styles, and clear loading/disabled states. Touch targets should stay large enough on mobile.


Common Mistakes

  • Building Dot Fill Button with divs instead of real buttons or links.
  • Hiding the label during hover.
  • Forgetting loading and disabled states.

Changelog

Added prefers-reduced-motion support: character stagger delay is skipped when the user has reduced motion enabled
Initial release

API Reference

PropTypeDefaultDescription
bgColorcolor#ff6b00Resting button background color.
textColorcolor#ffffffResting label color.
hoverTextColorcolor#ff6b00Label color while filled.
dotColorcolor#ffffffDot color.

Questions, Answered.

When should I use Dot Fill Button?

Use it when a compact CTA or card action needs a dot expanding into feedback without delaying the action.

Should Dot Fill Button use a real button or link?

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>`.

How should Dot Fill Button handle focus?

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.

How should loading states work with Dot Fill Button?

Loading should be visually clear and programmatically communicated without hiding the label.

What should reduced motion do for Dot Fill Button?

With reduced motion, the dot fill, colour change, and label roll still happen on hover, but instantly, with no transition or per-letter stagger.

Request a Custom Animation

Need a custom effect? Tell us what to create.

Related Effects

Explore All EffectsExplore All EffectsExplore All Effects
Grid Tunnel
Pro
Three.js@react-three/drei@react-three/fiber

Grid Tunnel

WebGL

Hover Slider
Pro
Three.jsGSAP

Hover Slider

WebGL

Phantom Image Trail
GSAP

Phantom Image Trail

Cursor

Circular Split Roll
GSAPLenis

Circular Split Roll

Scroll

Scroll Distortion
Pro
GSAPThree.js

Scroll Distortion

Scroll