Easily create triangles with CSS3 and LESS
I wrote a simple LESS mixin to create triangles with CSS3.
Usage
.triangle(@direction, @size, @color)
- @direction defines the direction: 'up', 'down', 'left' or 'right'.
- @size defines the size
- @color defines the color
Example
.dropdown {
&:after {
.triangle(down, 5px, #fff);
}
}
Written by Stijn Janssen
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#