Skip to content
 
 

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Invert Images

Invert White Images to Black using SVG, targeted for IE 10 as CSS3 Filters replacement.

###Dependencies

  • Modernizr with CSS Filters and Prefixed detection enabled.
  • jQuery 1.x

###Browser Support

  • Firefox
  • Internet Explorer 10+

###CSS filter Support At the time of writing this, Google Chrome supports prefix version of CSS Filters hence this plugin will do nothing instead usage -webkit-filter:invert(1); to invert demo images. You should be doing same.

###Demo

###How-To Call the invertImages() function inside DOM ready to the target image(s).

  //Initialize
	$(function () {
	    $("img").invertImages();
	});
	
	//Destroy
	$(function () {
	    $("img.toDestroy").invertImages({
	      destroy:true
      });
	});

About

Invert White Images using SVG Filters.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors