css-triangle
v0.0.1
Published
[![npm version](https://badge.fury.io/js/css-triangle.svg)](https://badge.fury.io/js/css-triangle) [![Build Status](https://travis-ci.org/kimulaco/css-triangle.svg)](https://travis-ci.org/kimulaco/css-triangle) [![Coverage Status](https://coveralls.io/rep
Downloads
4
Readme
css-triangle
Install
npm install --save css-triangle
Use
const cssTriangle = require('css-triangle');
cssTriangle.generate({
width: 100,
height: 100,
color: '#ccc',
direction: 'top'
});
/*
{
'width': 0,
'height': 0,
'border-style': 'solid',
'border-width': '0 50px 100px 50px',
'border-color': 'transparent',
'border-bottom-color': '#999'
}
*/
ToDos
- Update Documents
- Create demo page