Skip to main content

Website Carbon Badge: sustainable web design example

A free, animated carbon badge for footers and about pages, editorial gauge style. Every colour, text and motion setting is a runtime input.

Updated October 2026

About the Website Carbon Badge

The Website Carbon Badge is a carbon badge with a editorial gauge look, made for footers and about pages. It animates a gauge needle that eases to the grade and a swaying leaf, and a tap switches between green and grey hosting. It also has keyframes you can edit in the ExodeUI timeline: an entrance and an ambient float.

Runtime inputs for the Website Carbon Badge

These 23 inputs, plus the replay and tap triggers, can be set from the customizer above, from the ExodeUI studio, or from your code while the element runs.

InputWhat it changesType
gramsGrams CO₂ per viewNumber
cleanerCleaner than (%)Number
siteSiteText
hostLabelHosting labelText
panelColorPanelColour
goodColorGoodColour
badColorPoorColour
inkColorInkColour
greenHostGreen hosting onOn/off
radiusCorner radiusNumber
liftHover liftNumber
interactiveMouse interactionOn/off
tiltHover tilt (deg, 0 = off)Number
pressPress squishNumber
floatExtra idle float (px)Number
speedAnimation speedNumber
introEntrance animationOn/off
introStyleExtra entrance styleChoice
introDurationEntrance duration (s)Number
colorTweenColour change fade (s)Number
pageModePage backgroundChoice
pageTopPage colourColour
pageBottomPage gradient endColour

Add the Website Carbon Badge to React or Next.js

  1. Open an element above and set its text, colours and motion, or keep the defaults.
  2. Download the .bexode file (or the customized .exode) and put it in your public folder.
  3. Install the runtime with npm i exodeui.
  4. Render it with ExodeUICanvas and pass your text, numbers and colours as inputs.
import { ExodeUICanvas } from 'exodeui';

export function WebsiteCarbonBadgeWidget({ data }) {
  return (
    <ExodeUICanvas
      src="/ui-trends/files/sustainable/01-carbon-badge.bexode"
      autoPlay
      style={{ width: 600, height: 400 }}
      inputs={{
        site: data.site,
        hostLabel: data.hostLabel,
        // every colour is an input too, for example a brand accent
        ...data.theme
      }}
    />
  );
}

Frequently asked questions

Is the Website Carbon Badge element free?
Yes. You can preview it, customize it and download the .exode and .bexode files without paying. ExodeUI also has a free Community plan for editing it in the studio.
What does the Website Carbon Badge do when tapped?
It switches between green and grey hosting. You can fire the same action from code with the tap input, and replay the entrance with the replay input.
Can I change the colours and text of the Website Carbon Badge?
Yes. All 6 colours and every label are runtime inputs. Set them in the customizer above or pass them from your code; colour changes cross-fade.
Does it have keyframes I can edit?
Yes. The file has a keyframed entrance and an ambient float on the timeline, which you can edit in the ExodeUI Animate tab. Its own motion and interaction stay live and follow the speed input.
Does it work outside React?
The same file works with the other ExodeUI runtimes, including Vue, Svelte, Angular, Solid, React Native, SwiftUI and Flutter.