Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
  #frameDiv {
    width: 300px;
    height: 200px;
    margin: 20px;
    position: relative;
    border: solid black 1px;
    background-color: rgb(205, 242, 205);
  }
  svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  img {
    position: absolute;
    z-index: 1;
    width: 70px;
    offset-path: path('M 50,150 C 50,25 250,25 250,150');
  }
</style>
</head>
<body>
<h1>Change the offset-distance property value with JavaScript</h1>
<p>The fish is placed at the start of its path. This is default.</p>
<p>Click the "Try it" button to place the fish 200px from the start of its path:</p>
<button onclick="myFunction()">Try it</button>
<div id="frameDiv">