Created
November 30, 2014 22:35
-
-
Save devdays/1e1e949bf68297606c12 to your computer and use it in GitHub Desktop.
SVG Clipping
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 xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<svg> | |
<clipPath id="cut-off-bottom"> | |
<rect x="0" y="0" width="200" height="100" /> | |
</clipPath> | |
<circle cx="100" cy="100" r="100" clip-path="url(#cut-off-bottom)" /> | |
</svg> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment