User avatar

Jeroen Reumkens PRO

An unnamed playground on Frontend.fyi

Unlock Playground Access

Playgrounds let you build, test, and share frontend ideas instantly — right in your browser. Access is included in PRO. Just want Playgrounds? Pick a plan below.

Maker

€5,- / month

Unlimited Playgrounds access to build, experiment, and share without limits.

Join for €5 per month

Champion

€10,- / month

All the benefits of Maker, plus you help Frontend.fyi grow and get a Champion badge on your profile.

Join for €10 per month

Cancel anytime — no commitment.
Upgrade to PRO anytime and get a partial refund.We'll credit 100% of your first 3 months and 50% of the rest toward the PRO lifetime price.

Already a member? Login

Playground settings

Title

Description

Public

Editor settings


Packages

These packages can be imported in your JavaScript files.

Package name

Version

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
:root {
  --background-color: #131018;
  --text-color: #fff;

  background-color: var(--background-color);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

svg {
  --circumference: 564px;
  --item-gap: 12px;
  --bar-count: 4;
  --available-width: calc(var(--circumference) - var(--item-gap) * var(--bar-count));
}

circle {
  stroke-dasharray: calc(var(--percentage) * var(--available-width)), var(--available-width);
  stroke-dashoffset: calc(var(--offset, 0) * (var(--available-width) * -1) - calc(var(--index, 1) * var(--item-gap)));
  fill: transparent;
  stroke-width: 10px;
}

circle:nth-child(1) {
  --index: 1;
  --percentage: 0.05;
  stroke: red;
}

circle:nth-child(2) {
  --index: 2;
  --percentage: 0.10;
  --offset: 0.05;
  stroke: yellow;
}

circle:nth-child(3) {
  --index: 3;
  --percentage: 0.30;
  --offset: 0.15;
  stroke: green;
}

circle:nth-child(4) {
  --index:4;
  --percentage: 0.55;
  --offset: 0.45;
  stroke: orange;
}
One sec — editor's thinking…