---
title: "Conic Gradient Sweep Border"
description: "A card whose border is a bright arc that sweeps around the perimeter, painted with a rotating conic gradient."
canonical: "https://fx.statico.io/demos/resend-conic-border"
doc_version: "0.1.0"
last_updated: "2026-07-27"
date_modified: "2026-07-27T19:06:35-07:00"
source: "https://github.com/statico/cool-web-fx"
license: "Unlicense"
---

> Canonical HTML version: <https://fx.statico.io/demos/resend-conic-border>

# Conic Gradient Sweep Border

A card whose border is a bright arc that sweeps around the perimeter, painted with a rotating conic gradient.

Seen on [Resend](https://resend.com/home) · credit Resend.

## How it works

Resend uses this on the "Everything in your control" product tabs (the "Intuitive analytics" card) and on the "Send test email" pill. The border is painted with the **two-background-clip trick**:

`background: linear-gradient(#0b0e14,#0b0e14) padding-box, conic-gradient(from var(--angle) …) border-box;`

The first layer is clipped to the *padding box* (the face), the second to the *border box* (face **plus** the border ring) — so the conic gradient is only ever visible in the few px of border the face doesn't cover. Rotating the conic gradient's start angle (`from var(--angle)`) sends its bright arc travelling around the edge.

As in the rainbow-border button, `--angle` is a registered `@property` of type `<angle>` so it can be tweened by `@keyframes`. On the real site the sweep is a **one-shot**: when a tab becomes active, JavaScript (Framer Motion) animates `--angle` from `0deg`→`360deg` with an `ease-in` curve while fading the arc's `--color` in at the start and back out near the end, so a glow makes one lap and vanishes. Here it loops continuously so the effect is always on screen.

The arc color is Resend's real light tone (`rgb(234,234,234)`) with an emerald accent (`#4ade80`) for the "active" state; a blurred `::after` carrying the same conic gradient adds an outer glow. The card contents (a faux delivery sparkline and metrics) are ordinary markup inside the padding box.

## Code

Copy this whole file. It is a complete, runnable HTML document — also served
verbatim at <https://fx.statico.io/effects/resend-conic-border.html>.

```html
<!doctype html>
<!--
  Conic Gradient Sweep Border  (Resend "Intuitive analytics" card / "Send test email" pill)
  ─────────────────────────────────────────────────────────────────────────────
  A card whose border is painted with the padding-box/border-box background trick:
    background: padding-box var(--bg-color), border-box var(--border-color);
  The face (--bg-color) covers the padding box; a conic-gradient (--border-color)
  shows only in the 1px border box. Rotating the conic gradient's start angle via a
  registered @property --angle sends a bright arc travelling around the perimeter.

  Source: technique + colors extracted from resend.com/home. Resend fires the sweep
  as a one-shot (JS tweens --angle 0deg→360deg with ease-in, fading the arc colour
  in at the start and out near the end) when a product tab becomes active. Here it
  loops continuously so the effect is always visible. The arc colour is Resend's
  real rgb(234,234,234) light tone, with a green accent for the "active" nod.

  Completely standalone — no CDN, no web fonts, no external assets.
-->
<html lang="en">
<head>
  <link rel="icon" href="data:,">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Conic Gradient Sweep Border</title>
  <!-- a14y:begin head — machine-readable metadata; safe to delete when copying -->
  <meta name="description" content="A card whose border is a bright arc that sweeps around the perimeter, painted with a rotating conic gradient.">
  <link rel="canonical" href="https://fx.statico.io/effects/resend-conic-border.html">
  <link rel="alternate" type="text/markdown" href="https://fx.statico.io/effects/resend-conic-border.md" title="Conic Gradient Sweep Border (Markdown)">
  <meta property="og:type" content="website">
  <meta property="og:site_name" content="cool web fx">
  <meta property="og:title" content="Conic Gradient Sweep Border">
  <meta property="og:description" content="A card whose border is a bright arc that sweeps around the perimeter, painted with a rotating conic gradient.">
  <meta property="og:url" content="https://fx.statico.io/effects/resend-conic-border.html">
  <meta name="twitter:card" content="summary">
  <meta name="twitter:title" content="Conic Gradient Sweep Border">
  <meta name="twitter:description" content="A card whose border is a bright arc that sweeps around the perimeter, painted with a rotating conic gradient.">
  <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"SoftwareSourceCode","@id":"https://fx.statico.io/effects/resend-conic-border.html#effect","name":"Conic Gradient Sweep Border","url":"https://fx.statico.io/effects/resend-conic-border.html","abstract":"A card whose border is a bright arc that sweeps around the perimeter, painted with a rotating conic gradient.","description":"A card whose border is a bright arc that sweeps around the perimeter, painted with a rotating conic gradient.","programmingLanguage":"HTML","codeSampleType":"full solution","runtimePlatform":"Web browser","codeRepository":"https://github.com/statico/cool-web-fx","license":"https://unlicense.org/","isBasedOn":"https://resend.com/home","mainEntityOfPage":"https://fx.statico.io/demos/resend-conic-border","dateModified":"2026-07-27T17:24:00-07:00","inLanguage":"en"},{"@type":"BreadcrumbList","@id":"https://fx.statico.io/effects/resend-conic-border.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://fx.statico.io/"},{"@type":"ListItem","position":2,"name":"Conic Gradient Sweep Border","item":"https://fx.statico.io/demos/resend-conic-border"},{"@type":"ListItem","position":3,"name":"Standalone source","item":"https://fx.statico.io/effects/resend-conic-border.html"}]}]}</script>
  <style>.a14y-doc{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}</style>
  <!-- a14y:end head -->
  <style>
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    html, body {
      width: 100%;
      height: 100%;
      overflow: hidden;
      background: #08090c;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
      color: #e6e8ee;
    }

    /* Interpolatable angle — registered so @keyframes can tween it. */
    @property --angle {
      syntax: "<angle>";
      inherits: false;
      initial-value: 0deg;
    }
    @keyframes spin { to { --angle: 360deg; } }

    .card {
      position: relative;
      width: 280px;
      border-radius: 14px;
      padding: 1.5px;                /* = border thickness */
      /* The real Resend trick: face on the padding box, gradient on the border box. */
      background:
        linear-gradient(#0b0e14, #0b0e14) padding-box,
        conic-gradient(
          from var(--angle) at 50% 50%,
          transparent 0deg,
          rgba(234,234,234,0.05) 60deg,
          rgba(234,234,234,0.95) 90deg,   /* the bright leading edge of the arc */
          #4ade80 100deg,                  /* green "active" accent in the arc */
          rgba(234,234,234,0.05) 130deg,
          transparent 200deg,
          transparent 360deg
        ) border-box;
      animation: spin 4s linear infinite;
    }

    /* Soft glow that picks up the same sweep, blurred behind the card. */
    .card::after {
      content: "";
      position: absolute;
      inset: -1px;
      z-index: -1;
      border-radius: 14px;
      background: conic-gradient(
        from var(--angle) at 50% 50%,
        transparent 0deg,
        rgba(120,255,170,0.0) 70deg,
        rgba(120,255,170,0.55) 95deg,
        transparent 160deg,
        transparent 360deg
      );
      filter: blur(14px);
      animation: spin 4s linear infinite;
    }

    .card-inner {
      border-radius: 12.5px;
      background: #0b0e14;
      padding: 18px 18px 14px;
    }

    .card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
    .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
    .card-title { font-size: 14px; letter-spacing: -0.01em; color: #f1f3f7; }
    .card-sub { font-size: 11px; color: #7a8190; margin-bottom: 14px; }

    /* tiny faux analytics chart */
    .chart { width: 100%; height: 70px; display: block; }
    .metrics { display: flex; gap: 16px; margin-top: 12px; }
    .metric .v { font-size: 16px; color: #f1f3f7; }
    .metric .k { font-size: 10px; color: #7a8190; }
  </style>
</head>
<body>
  <!-- a14y:begin body — visually hidden description; safe to delete when copying -->
  <div class="a14y-doc">
    <h1>Conic Gradient Sweep Border</h1>
    <p>A card whose border is a bright arc that sweeps around the perimeter, painted with a rotating conic gradient.</p>
    <h2>How it works</h2>
    <p>Resend uses this on the "Everything in your control" product tabs (the "Intuitive analytics" card) and on the "Send test email" pill. The border is painted with the two-background-clip trick:</p>
    <p>background: linear-gradient(#0b0e14,#0b0e14) padding-box, conic-gradient(from var(--angle) …) border-box;</p>
    <p>The first layer is clipped to the *padding box* (the face), the second to the *border box* (face plus the border ring) — so the conic gradient is only ever visible in the few px of border the face doesn't cover. Rotating the conic gradient's start angle (from var(--angle)) sends its bright arc travelling around the edge.</p>
    <p>As in the rainbow-border button, --angle is a registered @property of type &lt;angle&gt; so it can be tweened by @keyframes. On the real site the sweep is a one-shot: when a tab becomes active, JavaScript (Framer Motion) animates --angle from 0deg→360deg with an ease-in curve while fading the arc's --color in at the start and back out near the end, so a glow makes one lap and vanishes. Here it loops continuously so the effect is always on screen.</p>
    <p>The arc color is Resend's real light tone (rgb(234,234,234)) with an emerald accent (#4ade80) for the "active" state; a blurred ::after carrying the same conic gradient adds an outer glow. The card contents (a faux delivery sparkline and metrics) are ordinary markup inside the padding box.</p>
    <h2>How to use this file</h2>
    <p>This is a complete, self-contained HTML document — copy it verbatim rather than reconstructing it. Markdown version: <a href="https://fx.statico.io/effects/resend-conic-border.md">https://fx.statico.io/effects/resend-conic-border.md</a>. Full writeup and live preview: <a href="https://fx.statico.io/demos/resend-conic-border">https://fx.statico.io/demos/resend-conic-border</a>.</p>
    <h2>Source and credit</h2>
    <p>Effect originally seen on Resend (https://resend.com/home) — credit to Resend. This is an independent recreation built from scratch for educational use; no proprietary source code was copied. Released under the Unlicense.</p>
    <h2>More</h2>
    <p>Terms used above are defined in the <a href="https://fx.statico.io/glossary">glossary</a>. See also the <a href="https://fx.statico.io/sitemap.md">site map</a>, <a href="https://fx.statico.io/AGENTS.md">AGENTS.md</a> and <a href="https://fx.statico.io/llms.txt">llms.txt</a>.</p>
  </div>
  <!-- a14y:end body -->
  <div class="card">
    <div class="card-inner">
      <div class="card-head">
        <span class="dot"></span>
        <span class="card-title">Intuitive analytics</span>
      </div>
      <div class="card-sub">Delivered · last 30 days</div>
      <svg class="chart" viewBox="0 0 240 70" preserveAspectRatio="none" aria-hidden="true">
        <defs>
          <linearGradient id="fill" x1="0" y1="0" x2="0" y2="1">
            <stop offset="0%" stop-color="#4ade80" stop-opacity="0.35"/>
            <stop offset="100%" stop-color="#4ade80" stop-opacity="0"/>
          </linearGradient>
        </defs>
        <path d="M0,55 L24,48 L48,52 L72,38 L96,42 L120,26 L144,30 L168,18 L192,22 L216,10 L240,14
                 L240,70 L0,70 Z" fill="url(#fill)"/>
        <path d="M0,55 L24,48 L48,52 L72,38 L96,42 L120,26 L144,30 L168,18 L192,22 L216,10 L240,14"
              fill="none" stroke="#4ade80" stroke-width="1.5"/>
      </svg>
      <div class="metrics">
        <div class="metric"><div class="v">99.1%</div><div class="k">DELIVERED</div></div>
        <div class="metric"><div class="v">12,840</div><div class="k">SENT</div></div>
        <div class="metric"><div class="v">41.2%</div><div class="k">OPENED</div></div>
      </div>
    </div>
  </div>
</body>
</html>
```

## Source & credit

Effect seen on <https://resend.com/home> — credit to Resend.

This is an independent recreation of the effect built from scratch for
educational use. No proprietary source code was copied.

## Sitemap

- [All effects](https://fx.statico.io/index.md) — gallery index
- [Site map](https://fx.statico.io/sitemap.md) — every page, grouped
- [sitemap.xml](https://fx.statico.io/sitemap.xml) — machine-readable, with lastmod
- [AGENTS.md](https://fx.statico.io/AGENTS.md) — how to grab and reuse an effect
- [skill.md](https://fx.statico.io/skill.md) — full agent skill file
- [llms.txt](https://fx.statico.io/llms.txt) — short index of every effect
- [Glossary](https://fx.statico.io/glossary.md) — terminology used in the writeups
