Last active
March 26, 2017 14:39
-
-
Save ktzanev/f81dca3163fd738ef2c489a940823054 to your computer and use it in GitHub Desktop.
SVG - path (GistRun)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svg { | |
border: 1px solid #eef; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment