Hey,
Thanks for your answer, but that's not really what I want.
On the left, I can drag the SVG at most with n px between the left div and the SVG.
I would like to have var a for having the possibility to drag the SVG on the right
_____ Edit : 12/29/2017 03:01 GMT +1
It seems I figured out what var a were to be
- var a = -n-5*100 + width;
Where 5 is the number of polygon and 100 the polygon's width.
var width is the lenght of html document
Thank you JΛ̊KE for your answer which inspired me the solution :)