Skip to content

vonKristoff/squiggle

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
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

Stars

Watchers

Forks

Packages

No packages published