0.0.1 • Published 5 years ago

css-triangle v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

css-triangle

npm version Build Status Coverage Status License: MIT

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

License

MIT License