Draw Directional SVG Paths Between Elements – svgDynamicDirectionalPath.js

Category: Javascript | February 27, 2018
Author: santanubiswas948
Views Total: 999
Official Page: Go to website
Last Update: February 27, 2018
License: MIT

Preview:

Draw Directional SVG Paths Between Elements – svgDynamicDirectionalPath.js

Description:

The svgDynamicDirectionalPath.js JavaScript library dynamically draws responsive, directional SVG paths between block elements to visualize the relationship you want.

See also:

How to use it:

Import the svgDynamicDirectionalPath.js script into the document.

<script src="src/svgDynamicDirectionalPath.js"></script>

Create a directional path between two div elements.

<div id="div1"></div>
<div id="div2"></div>
var div1=document.getElementById('div1');
var div2=document.getElementById('div2');
dynamicPath(div1,div2);

You Might Be Interested In:


Leave a Reply