Skip to content

Organic shape image card

Cards whose image is cut into a pebble shape by a CSS mask, with a tinted blob behind it, text and a button. No JavaScript, no dependency.

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

Description

Each image is cut by an SVG mask embedded in the CSS: the shape lives in a single variable, --cio-mask, that you can swap for any other path without touching the image. The same path, tinted and slightly rotated, sits behind the image and turns on hover or when the button gets focus. The image keeps its alternative text, and the level, price and button stay real text in the HTML, readable without script. The cards adapt from 360 px, in light and dark themes, with AA contrast, 44 px targets and no animation when prefers-reduced-motion is on. A browser without CSS masks simply shows a rounded image.

Code

Loading the code…

The code of this component in

Archive contents

carte-image-forme-organique-html-tailwind.zip3 files · 6 Ko

  • index.html12 Ko
  • README.md3 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • A mobile page to link from your social profiles: portrait, name, priority links (booking, WhatsApp, website, reviews, call), opening hours with an open or closed status, social links and a share button, in dependency-free HTML and CSS.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A single-plan pricing card: struck-through price and discount, a places-left gauge driven by a data attribute, the list of everything included and a booking button that turns into a waiting list once sold out.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Three treatment cards in accessible neumorphism: gently raised surfaces, buttons that sink in when activated, a light/dark switch for the block itself. 3:1 outlines and AA text kept.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Four fully clickable workshop cards in a neo-brutalist style: thick border, solid offset shadow and a card that sinks onto its shadow on hover or focus. Pastel tones, dark mode, no JavaScript.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component