Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a angled arrow like this with gradient and transparent?

Tags:

css

How to make a angled arrow like this with gradient and transparent?

I made a block with gradient here. need help to convert into arrow.

http://jsfiddle.net/jitendravyas/aZ65c/2/

I need a compatible with ie8 compatibility

enter image description here

like image 619
Jitendra Vyas Avatar asked Oct 14 '11 09:10

Jitendra Vyas


1 Answers

@jitendar; check this out i make it with pure css:

.button {width:70px;
    height:140px;
    overflow:hidden;
}
.button:after {
    content:"";
    width:100px;
    height:100px;
    background: linear-gradient(left top, #cb60b3 0%,#c146a1 50%,#a80077 51%,#db36a4 100%);
    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    display:block;
    margin-top:20px;
    margin-left:25px;
}

Check the fiddle http://jsfiddle.net/sandeep/aZ65c/7/

like image 69
sandeep Avatar answered Nov 17 '22 07:11

sandeep