Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/captainkeller/ckline

Generate random Background Lines it's great for Backgrounds
https://github.com/captainkeller/ckline

animation background canvas css html javascript jquery lines plugin svg

Last synced: 2 months ago
JSON representation

Generate random Background Lines it's great for Backgrounds

Awesome Lists containing this project

README

        

ckLine.js
===========

Generates random svg Lines
You can find a demo here
https://www.jqueryscript.net/animation/Animated-SVG-Lines-jQuery-JnLine.html

## Installation

Download package and include `jquery.ckLine.min.js` in your document after including jQuery.

```html

```

## Usage

You need an empty SVG Element in your HTML
```html

```

### Via JavaScript

To call the ckLine plugin, select your target element with jQuery and do the following:

```javascript
$('#ckLine').ckLine();
```

## Options



Name
type
default




svgId
string
null


width
number
SvgWidth


height
number
SvgHeight


strokeColor
string
#000


strokeWidth
number
2


animateTime
number
1000


interval
number
600


fadeOut
number
800


lifeTime
number
2000


easing
string
swing


leftRight
boolean
true


animationTimeRange
array
[<number>, <number>]

## Functions

To Destroy the plugin

```javascript
$('#ckLine').ckLine.destroy();
```