1.0.10 ā€¢ Published 5 years ago

better-ribbons v1.0.10

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

Ribbons

šŸŒˆ Add a flowing, smart ribbon to the background. demo

npm.io Build Status codecov npm.io npm.io PRs Welcome

English | ē®€ä½“äø­ę–‡

šŸ“¦ Install

CDN

<script src="https://cdn.jsdelivr.net/npm/better-ribbons/dist/ribbons.min.js"></script>

If you are using native ES Modules, there is also an ES Modules compatible build:

<script type="module">
  import Ribbons from 'https://cdn.jsdelivr.net/npm/better-ribbons/dist/ribbons.esm.js'
</script>

npm

npm i better-ribbons -S

šŸ”Ø Usage

Initialize a Ribbons instance

import Ribbons from 'better-ribbons'

const ribbonsInstacne = new Ribbons()
/* custom option */
const ribbonsOption = new Ribbons(
  {
    size: 100,
    alpha: 0.7
    zIndex: 0.5
  }
)

šŸŗ Options

  • size

    • Description: The size of each ribbon
    • Default: 90
    • Type: number
  • alpha

    • Description: ribbon transparency
    • Default: 0.6
    • Type: number
  • zIndex

    • Description: ribbon 'z-index` attribute
    • Default: -1
    • Type: number

ā˜•ļø Screenshot

img

LICENSE

MIT Ā© KuangPF

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago