Skip to content

nicolaj-hartmann/InvertImages

 
 

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

Releases

No releases published

Packages

No packages published