Skip to content

Bento with counter cells and sparklines

A six-cell bento grid: key figures, SVG sparklines, a quote and icons. All the text is in the HTML and the animation is CSS only, with no script at all.

  • Tailwind
  • React
  • CSS
  • WordPress
3 downloads
Open in a new tab

Description

Ideal for presenting a craftsperson or a local service with concrete proof. Figures rise into place and sparklines draw themselves as the cell enters the screen; in browsers without scroll-driven animation, everything plays once on load. The displayed figure is always the real text: it does not count up, so it stays readable, copyable and indexable even without CSS. Replace the values, the SVG paths and the anchor link with your own data and contact page. Accessibility: a list of cells, level 3 headings, sparklines named by a text describing their trend, start and end values written under each one, icons hidden from screen readers, the quote in a real blockquote, a 44 px tall link with a visible focus, sizes in rem, contrast above the AA ratio in light and dark modes. With prefers-reduced-motion nothing moves and the final state shows straight away. The grid goes from four columns to two below 768 px, then to one below 480 px, in the same reading order.

Code

Loading the code…

The code of this component in

Archive contents

features-bento-metriques-animees-html-tailwind.zip3 files · 6 Ko

  • index.html9 Ko
  • README.md4 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • Three cards in saturated flat colours (yellow, pink, electric blue) with high-contrast text and a dark variant. Every colour pair is measured at AA: 5.5:1 at worst.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Six features as frosted glass cards over a slowly drifting aurora mesh gradient. Pause button, still background under prefers-reduced-motion, CSS and a light script.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • The key message stays pinned while the background changes colour and illustration at each scroll step. CSS sticky, a light script, stacked cards as fallback under prefers-reduced-motion.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A two-offer table: checked rows, a column highlighted from top to bottom and one call-to-action button per offer. Pure HTML and CSS, no script at all.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component