Buttons

Border Draw

Borders draw themselves progressively on hover.

CSSHoverBorder
Border Draw
See it live (free account) →

The code

A glimpse of the source:

index.html
<button class="demo-btn btn-border-draw">
    Border Draw
    <span class="border-left">
    </span>
    <span class="border-right">
    </span>
  </button></div>
🔒 Unlock the full code

Full HTML + CSS + JS, copy-paste-ready — with 800 more Premium effects.

Concrete use cases

A few real contexts where Border Draw shines:

How it works

Pure CSS effect — no JavaScript dependency.

Make it yours

You can tweak:

Add it in 3 steps

  1. Paste the HTML where you want the effect on your page.
  2. Add the CSS to your stylesheet (or in a <style> tag).
  3. Tweak the colors and CSS variables to match your brand — nothing to install.

Browser support

Works in every modern browser (Chrome, Firefox, Safari, Edge). Responsive, with graceful degradation.

More Buttons effects

Browse all Buttons effects →

FAQ

Is the code free?

This effect is part of the Premium library (801 effects, copy-paste-ready code). Around 70 effects are free.

How do I add it to my project?

Copy the HTML, CSS and JS and paste them in. No dependencies, works with any framework.

Does it work on mobile?

Yes — the effects are responsive and degrade gracefully.