<div class="wrap">
<div class="svg-wrap">
<p>Make</p>
<p>Enjoy</p>
<p>Discover</p>
<svg class="svg-graphic" width="560" height="645" viewBox="0 0 560 645" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<g>
<clipPath id="hex-mask">
<polygon points="270,0 0,160 0,485 270,645 560,485 560,160" />
</clipPath>
</g>
<a xlink:href="http://shakenandstirredweb.com">
<polygon fill="#ff9c21" points="268,0 0,158 0,483 268,644 558,483 558,158" transform="translate(1, 1)" />
<image clip-path="url(#hex-mask)" height="100%" width="100%" xlink:href="https://sphotos-b.xx.fbcdn.net/hphotos-frc1/902130_10151601296353689_541866262_o.jpg" preserveAspectRatio="xMidYMin slice" />
</a>
<a xlink:href="http://sawyerh.com" transform="scale(0.75) translate(90, 105)">
<polygon fill="#1eb934" points="268,0 0,158 0,483 268,644 558,483 558,158" transform="translate(1, 1)" />
<image clip-path="url(#hex-mask)" height="100%" width="100%" xlink:href="http://labs.sawyerhollenshead.com/lab/svg-clippath/images/tree.jpg" preserveAspectRatio="xMidYMin slice" />
</a>
<a xlink:href="http://www.organizedwonder.com" transform="scale(0.5) translate(270, 315)" >
<polygon fill="#64dcff" points="268,0 0,158 0,483 268,644 558,483 558,158" transform="translate(1, 1)" />
<image clip-path="url(#hex-mask)" height="100%" width="100%" xlink:href="http://labs.sawyerhollenshead.com/lab/svg-clippath/images/brooklyn.jpg" preserveAspectRatio="xMidYMin slice"/>
</a>
</svg>
</div><!-- #svg-wrap -->
<h1>SVG clipPath's</h1>
<a href="http://sawyerhollenshead.com/writing/?p=23">Read the write-up</a>
<a href="https://twitter.com/sawyerh" class="twitter">by Sawyer Hollenshead</a>
</div><!-- #wrap -->
.clearfix {
zoom: 1; }
.clearfix:before, .clearfix:after {
content: "";
display: table; }
.clearfix:after {
clear: both; }
body {
background: url(http://labs.sawyerhollenshead.com/lab/svg-clippath//images/bg.png) repeat #d1d1d1;
color: #1c1b3b;
font-size: 14px;
margin: 0;
padding: 0 0 80px;
position: relative;
font-family: "adelle", Georgia, serif;
text-rendering: optimizeLegibility; }
body:after {
background: radial-gradient(center, ellipse cover, white 0%, rgba(255, 255, 255, 0) 100%);
/* FF3.6+ */
background: gradient(radial, center center, 0px, center center, 100%, color-stop(0%, white), color-stop(100%, rgba(255, 255, 255, 0)));
background: radial-gradient(center, ellipse cover, white 0%, rgba(255, 255, 255, 0) 100%);
/* Chrome10+,Safari5.1+ */
background: radial-gradient(center, ellipse cover, white 0%, rgba(255, 255, 255, 0) 100%);
/* Opera 12+ */
background: radial-gradient(center, ellipse cover, white 0%, rgba(255, 255, 255, 0) 100%);
/* IE10+ */
background: radial-gradient(center, ellipse cover, white 0%, rgba(255, 255, 255, 0) 100%);
/* W3C */
content: '';
display: block;
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 0; }
.wrap {
position: relative;
z-index: 10;
text-align: center; }
p {
margin: 0;
line-height: 1; }
a {
color: #1c1b3b;
display: block; }
h1 {
font-size: 18px;
font-weight: normal;
margin: 80px 0 8px;
line-height: 1;
position: relative; }
h1:before {
content: '';
display: block;
position: absolute;
top: -60px;
height: 40px;
width: 1px;
background: #9a988e;
left: 50%; }
.svg-wrap {
position: relative;
color: #fff;
text-shadow: 0 0 15px rgba(0, 0, 0, 0.25); }
.svg-wrap p {
position: absolute;
width: 100%;
display: block;
top: 6%;
left: 0;
right: 0;
z-index: 10;
text-align: center;
font-size: 18px;
text-transform: uppercase;
pointer-events: none; }
.svg-wrap p:nth-of-type(2) {
top: 18%; }
.svg-wrap p:nth-of-type(3) {
top: 31%; }
.svg-graphic {
margin: 40px auto 0;
position: relative;
right: -10px;
display: block;
z-index: 0; }
svg image {
transition: opacity 300ms ease;
transition: opacity 300ms ease;
transition: opacity 300ms ease; }
svg polygon:hover {
opacity: 1; }
svg a:hover image {
opacity: 0.4; }
a.twitter {
color: #9b8b61;
font-style: italic;
text-decoration: none;
margin-top: 15px; }
a.twitter:hover {
text-decoration: underline; }
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.