Forms

Border Animation

Border that draws itself progressively around the input.

CSSFocusBorder
Border Animation
See it live (free account) →

The code

A glimpse of the source:

index.html
<div class="border-anim-group">
    <input type="text" placeholder="Cliquez pour voir l'effet...">
    <span class="border-top">
    </span>
    <span class="border-right">
    </span>
    <span class="border-bottom">
    </span>
    <span class="border-left">
    </span>
🔒 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 Animation 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.

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.