There is. It takes a little bit of work:
html
<div class="gradient triangle"></div>
css
.gradient { /* Our base */
width:200px;
height:200px;
background: linear-gradient(to bottom, #7d7e7d 0%,#0e0e0e 100%);
margin:0 auto;
margin-top:50px;
}
.triangle {
background:transparent;
/* comment to see rectangle */ overflow: hidden; /**/
margin: 0 auto;
/* uncomment to see rhombus * outline: solid 1px red; /**/
width: 8.66em; /* height*sqrt(3)/2 */ height: 10em;
transform: rotate(-90deg) skewY(30deg);
}
.triangle:before, .octagon:before, .octagon.border:after {
display: block; /* to be able to apply width/ height/ transform */
width: inherit; height: inherit;
transform: skewY(-30deg) rotate(60deg) translate(50%);
background: linear-gradient(to bottom, #7d7e7d 0%,#0e0e0e 100%);
background-size: cover;
content: '';
}
.triangle { transform:translateX(-50px) rotate(300deg) skewY(30deg); }
https://jsfiddle.net/caiubyfreitas/hh1p3e2p/
Can you describe in the question what exactly is "this effect"? It has gradient, the gray rectangle on the left, the triangle below.
– Woss
I mean the design of the image
– goio
Exactly. Can you describe what you want to do? Do you want to recreate exactly the image style? What have you tried? You can [Dit] the question and ask what was the difficulty?
– Woss
Forget the gradient, the goal is to make the rectangle and the triangle below, I would like a start because I have no idea where to start, the rectangle until I know how to do, but the triangle is complicated for me
– goio
Take a look at these links. The second is to show that with Css you can do a lot http://www.maujor.com/blog/pg_apoio/desafio15/ http://maujor.com/blog/pg_apoio/desafio17/marcos-xavier.html
– Marcos Xavier