Skip to main content
100%

Heart-Shaped Hole

✓ Published0🌍 Public
CCora
Last edited Apr 2, 2025
Created on Jan 29, 2025
Forked from Fork of Hello HTML

This example shows a solid gray circle with a heart-shaped hole cut out of its center. It uses an SVG `<mask>` element, where a white rectangle reveals the circle and a black heart-shaped `<path>` hides that portion. The heart is drawn using quadratic Bézier curves, and the mask is applied to the circle via the `mask` attribute in inline SVG. The code runs directly in a bare-bones HTML page without any external JavaScript libraries.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes