Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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 }); ```

About

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

Resources

Packages

No packages published