2
I’m needing to do this kind of effect with css will have as ?
It wouldn’t matter to use css3
or any technology, this kind of css
will be used in an application ionic
, I don’t know if this would matter anything.
I need the reproduction identical to this, containing an icon and text inside.
I tried to use border-radius
and rotate
but it spun all the contents of div
.
.triangle {
height: 50px;
width: 50px;
background-color: red;
border-radius: 5px;
transform: rotate(50deg);
}
<ion-row>
<ion-col col-4>
<div class="triangle">
<ion-icon name="md-book" class=""></ion-icon>
<span>Algum texto</span>
</div>
</ion-col>
</ion-row>
Have you considered applying
border-radius
andtransform: rotate()
in adiv
?– Woss
no, how would it look ?
– Renan Rodrigues
I even tried here but he turned the contents of the div together.
– Renan Rodrigues
You can do with
rotate:(-50deg)
in thespan
and with positioningabsoluto
in thespan
and concerning in.triangle
. And to be inclined at the right angle would be45deg
– Isac
@Isac could create an answer to give the example ?
– Renan Rodrigues