How to transform each side of a shape separately?

后端 未结 4 890
深忆病人
深忆病人 2020-12-04 01:18

How do I create a CSS shape in which each side is transformed separately.

Something like the shape in the below image.

4条回答
  •  渐次进展
    2020-12-04 01:29

    #trapezium {
       height: 0; 
       width: 80px;
       border-bottom: 80px solid blue;
       border-left: 40px solid transparent;
       border-right: 40px solid transparent;
    }
    

    use this i thing usefull for you.

    and any another shape please visited this link http://www.css3shapes.com/

提交回复
热议问题