Skip to content

Instantly share code, notes, and snippets.

@ganglio
Forked from sawyerh/clippath.svg
Created June 26, 2012 16:07
Show Gist options
  • Save ganglio/2996734 to your computer and use it in GitHub Desktop.
Save ganglio/2996734 to your computer and use it in GitHub Desktop.
SVG Clippath
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
<a xlink:href="http://example.com">
<image clip-path="url(#hex-mask)" height="100%" width="100%" xlink:href="image.jpg" />
</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment