如何做一个有角度的箭头这样渐变和透明? [英] How to make a angled arrow like this with gradient and transparent?

查看:394
本文介绍了如何做一个有角度的箭头这样渐变和透明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用渐变和透明的有角度的箭头?



我在这里做了一个带有渐变的块。需要帮助才能转换为箭头。




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

解决方案

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

这篇关于如何做一个有角度的箭头这样渐变和透明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆