/squiggle

a jQuery plugin that Scribbles a Squiggle over your text ..

Primary LanguageJavaScript

SQUIGGLE

This jQuery plugin will generate a HTML5 Canvas made png to draw a 'squiggle' over your text, like a strike-through or underline.

Plugin Site

BASIC USAGE:

$('.element').squiggle({
	intensity:50,
	thickness:3,
	color:'#333',
	hover:true
});

config options:

Option data type values Required Nb.
intensity int 0 -> infinity No - defaults to 30 How intense the squiggle is
thickness int 1 -> ? No -> default is auto mode Auto mode will figure out a good thickness based on your font-size
color string hex / rgb No -> defaults to colour of text squiggle will sit behind the text not on top
hover boolean true / false defaults to false enables an 'unsquiggle' on 'mouseover, and 'resquiggle' on 'mouseout'

HTML setup

```html

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

```

usage example

```javascript $('.scribble').squiggle({ intensity:60, hover:true }); ```