Triangle Opacity
Utilities for controling the opacity of border triangles
Class reference
Usage
Adjust opacity of a triangle using the triangle-opacity-{amount}
utility classes.
Hover
To control the opacity of an triangle on hover, add the {hover}:
prefix to any existing triangle utility. For example, adding the class hover:triangle-opacity-50
to an element would apply the triangle-opacity-50
utility on hover.
Responsive
To control the size of an triangle at a specific breakpoint, add a {screen}:
prefix to any existing triangle utility. For example, adding the class md:triangle-opacity-50
to an element would apply the triangle-opacity-50
utility at medium screen sizes and above.
<div class="triangle triangle-opacity-75 md:triangle-opacity-50"></div>
For more information about Elements’ responsive design features, check out the Responsive Design documentation.
On this Page
v1.13.5