Skip to content

absqueued/InvertImages

Repository files navigation

Invert Images

Version 1.0.3

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

###Dependencies

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

###Browser Support

  • Internet Explorer 10
  • Chrome/Firefox Supports CSS3 filter

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

###Change Log

  • Version 1.0.0 - First authord.
  • Version 1.0.2 - Updating with Bower/NPM updates, configured grunt.
  • Version 1.0.3 - Destroy option to be passed as string. Garbage cleared (_default was of no use - removed. Destroy actually removes the stored data()); Added more CSS in .invert-it class because now more browsers supports the CSS Filters.