d
Limited availability79% of users
A CSS property that allows you to define the shape of an SVG <path> element. It lets you animate paths or changing them purely with CSS (e.g., on hover).
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
none- Inherited
- No
- Applies to
- SVG <path> elements
- Animation type
- basicShapeOtherwiseNo
Quick example
.icon-path {
/* Redefines the SVG path shape */
d: path("M 10 10 H 90 V 90 H 10 Z");
transition: d 0.3s ease;
}Values
nonepathd browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage79%of people can use this21% use a browser without it.
Browsers
52+
97+
79+Mobile
52+Android
97+Android