Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/farski/jquery-blend

Apply blend modes to images with colors or other images
https://github.com/farski/jquery-blend

Last synced: about 1 month ago
JSON representation

Apply blend modes to images with colors or other images

Awesome Lists containing this project

README

        

# jquery-blend

Blending modes for jquery

### Examples

#### Basic pattern

// Overlay with a solid color
$('img').blend({mode: 'overlay', adjustment: 'rgb(114, 25, 219)'});

// Overlay with an image
$('img').blend({mode: 'difference', adjustment: '/path/to/mask.jpg'});

#### Usage idea

$(function() {
$('.display img').each(function() {
$(this).blend({mode: $(this).attr('data-blend-mode'), adjustment: $(this).attr('data-blend-adjustment')});
});
});



### Modes

- normal

- darken
- multiply
- colorburn
- linearburn

- lighten
- screen
- colordodge
- lineardodge

- overlay
- softlight
- hardlight

- difference
- exclusion
- subtract