Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 633 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 633 Bytes

jQuery svgInject

jQuery plugin for replacing img-tags with SVG content

demo/

Usage

  1. Include jQuery:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
  2. Include plugin's code:

    <script src="jquery.svgInject.js"></script>
  3. Call the plugin:

    $("#element").svgInject(function() {
    	// Injection complete
    });

License

This plugin is available under the MIT license.

Author

Made by Robert Bue