Skip to content

Instantly share code, notes, and snippets.

@dfrankland
Forked from peterhry/gist:afac4906f2b330509fc7
Last active August 29, 2015 14:13
Show Gist options
  • Save dfrankland/3ff28d8031bddc6c0d49 to your computer and use it in GitHub Desktop.
Save dfrankland/3ff28d8031bddc6c0d49 to your computer and use it in GitHub Desktop.
Transparent JPGs!
<svg preserveAspectRatio="xMinYMin" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 560 1388">
<defs>
<mask id="canTopMask">
<image width="560" height="1388" xlink:href="img/can-top-alpha.png"></image>
</mask>
</defs>
<image mask="url(#canTopMask)" id="canTop" width="560" height="1388" xlink:href="can-top.jpg"></image>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment