Triangles JQuery Plugin

Getting Started

This plugin has dependency on jQuery and jQuery.svg

You can download the js files and embed in your html or just add the following codes

    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="//xming13.github.io/triangles/scripts/jquery.svg.min.js"></script>
    <script src="//xming13.github.io/triangles/scripts/triangles.min.js"></script>

Create a svg

    <svg id="triangles-default"></svg>

Initialise triangles on the element using jquery selector after document is loaded

    <script>
        $(document).ready(function() {
            $('#triangles-default').triangles();
        });
    </script>

Refer to Demo for more configuration settings.