line-maker
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Line Maker library

styled with prettier Greenkeeper badge Build Status Dev Dependencies

A library for creating and animating decorative lines on websites.

The main idea is based on LineMaker but this library use power of the mo-js.

Install

npm install --save line-maker

OR

<script src="https://unpkg.com/line-maker@1.0.0/dist/line-maker.umd.js"></script>

Usage

var lineMaker = new LinaMaker([
  {
    /* line options */
  }
])

LineOption

{
  origin?: string // origin of the line animation
  displaySettings{
    color?: string | { [deltastring]string } // color of the line [String | mojs Delta Object]
    width?: number | string // Width of the line
    start?: { // line start position relative to parent
      xnumber | string
      ynumber | string
    }
    end?: { // line end position relative to parent
      xnumber | string
      ynumber | string
    }
    zIndex?: number // line object z-index
  }
  // and any other option for mo-js html
}

DEMO

demo1

TODO

find a way to writing tests write document create more demos

Package Sidebar

Install

npm i line-maker

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

567 kB

Total Files

17

Last publish

Collaborators

  • sajjad-ser