Creating A Directional Path Between Two HTML Div Element Dynamically | svgDynamicDirectionalPath.js

Svg-Dynamic-directional-Path.js library creates a dynamic path with arrow direction between HTML div elements with good visualization and responsiveness.

Why do you need SVG-Dynamic-Directional-Path.js??

Sometimes we need to dynamically link two divs to the orientation to get the best visualization in our app.

Basic requirements

  • Here the path will always end with the highest width of the div elements.
  • It is always preferable to use large div elements (width to be large). Like the 100px width of the div. because elements for the best visual representation, this library takes a gap between two points in the same element. Otherwise, its perception would not be perfect.
  • Always take some space around any div otherwise if you take any div in point (0,0), then either you can’t see the paths or the visualization will be the worst.

How to make use of it:

Import the svgDynamicDirectionalPath.js script into the document.

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

Create a directional path between the two div elements.

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

draw directional svg paths between elements, Svg-Dynamic-directional-Path.js Plugin/Github

See Demo And Download

Official Website(santanubiswas948): Click Here

This superior jQuery/javascript plugin is developed by santanubiswas948. For extra advanced usage, please go to the official website.

Related Posts


Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…


Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…


How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…


A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…

Simple jQuery Plugin for Embedding YouTube Videos As Cover Background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…


Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…