Is there a way to have an opacity coded into this polygon? I am trying but filter: drop-shadow( 6px 0 2px rgba(xxx,xxx,xxx,x.x))
doesnt seem to work.
Here is a jsfiddle: http://jsfiddle.net/buhL2wjb/
html:
<div class="container">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="svg-right-arrow" viewBox="0 0 20 152" preserveAspectRatio="xMinYMid meet">
<polygon points="0,0 0,152 20,76"></polygon>
</svg>
</div>
css:
.container{
width:500px;
height:300px;
border:1px solid lightgrey;
}
.svg-right-arrow{
height:100%;
-webkit-filter: drop-shadow( 6px 0 2px #000000 );
filter: drop-shadow( 6px 0 2px #000000 );
}
.svg-right-arrow polygon{
fill:lightblue;
}