0

I have a img with link on backward and overlayered img (position: absolute; top:0px; left: 10px;) with -webkit-clip-path: polygon(0px 150px,200px 150px,100px 0px);.

But: link under img.clip-path in visible area not work.

How solved this problem? May be creale another layout with SVG?

PS: z-index and position:relative for link not work. SVG+clipPath not work.

Demo: http://jsfiddle.net/9fjv4wbr/

img { width: 220px;  margin: 20px; }
img:hover { opacity: 0.5; }

.absolute { position: absolute; top:0px; left: 10px; }
.back { width: 600px; }

.clip-polygon {
  -webkit-clip-path: polygon(0px 150px,200px 150px,100px 0px);
}

body {
  background: linear-gradient(
    to bottom,
    #999,
    #eee
  );
}

body, html {
  height: 100%;
}
<a href="http://www.google.com/"><img src="http://testp.infinityyazilim.com/IlkayOzturk/img/title_mentor.png" class="back"></a>
    
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/Harry-Potter-1-.jpg" alt="" class="absolute clip-polygon"></a>
Max Tusken
  • 29
  • 3

0 Answers0