shape-tri
Make CSS Triangle Shape
Last updated a year ago by younkue .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install shape-tri 
SYNC missed versions from official npm registry.

shape-tri npm version

Make CSS Triangle Shape

$ npm install shape-tri

Options

import {tri, dom} from "shape-tri";

tri({
  strokeWidth: number | string,
  className?: string,
  container?: HTMLElement,
  fill?: string,
  direction?: string,
  stroke?: string
});

dom(el: HTMLElement);

How to Use

<script src="//daybrush.github.io/shape-tri/release/latest/shapetri.min.js"></script>
<div class="triangle" data-stroke-width="11px" style="width: 100px"></div>
import {tri, dom} from "shape-tri";

const el = tri({radius: "100px", strokeWidth: "5px"});

document.body.appendChild(el);


// data-stroke-width
// data-stroke
// data-fill
// data-direction
dom(document.querySelector(".triangle"));

Current Tags

  • 0.1.0                                ...           latest (a year ago)

3 Versions

  • 0.1.0                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 3
Dependencies (5)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |