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

后端 未结 1 1946
庸人自扰
庸人自扰 2021-01-02 20:04

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.ne

相关标签:
1条回答
  • 2021-01-02 20:24

    @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/

    0 讨论(0)
提交回复
热议问题