项目作者: younkues

项目描述 :
Make CSS Triangle Shape
高级语言: TypeScript
项目地址: git://github.com/younkues/shape-tri.git
创建时间: 2018-10-15T12:47:16Z
项目社区:https://github.com/younkues/shape-tri

开源协议:

下载


shape-tri npm version

Make CSS Triangle Shape

  1. $ npm install shape-tri

Options

  1. import {tri} from "shape-tri";
  2. tri({
  3. radius: string,
  4. strokeWidth: number | string,
  5. className?: string,
  6. container?: HTMLElement,
  7. fill?: string,
  8. direction?: string,
  9. stroke?: string
  10. });

How to Use

  1. <script src="//daybrush.github.io/shape-tri/release/latest/shapetri.min.js"></script>
  1. import {tri} from "shape-tri";
  2. const el = tri({radius: "100px", strokeWidth: "5px"});
  3. document.body.appendChild(el);