Skip to content

Instantly share code, notes, and snippets.

@ktzanev
Last active March 26, 2017 14:39
Show Gist options
  • Save ktzanev/f81dca3163fd738ef2c489a940823054 to your computer and use it in GitHub Desktop.
Save ktzanev/f81dca3163fd738ef2c489a940823054 to your computer and use it in GitHub Desktop.
SVG - path (GistRun)
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Exemple commande SVG</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Exemple commande SVG</h1>
<svg viewBox="0 0 200 100">
<path fill="none" stroke="red"
d="M5,5 h15 v15 l35,35 C 95,55 95,95 55,95 z" />
<path fill="none" stroke="blue" transform="translate(50 0)"
d="M5,5 h15 v15 l35,35 L 95,55 95,95 55,95 z" />
</svg>
</body>
</html>
svg {
border: 1px solid #eef;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment