Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
  #frameDiv {
    width: 430px;
    height: 180px;
    margin: 20px;
    position: relative;
    border: solid black 1px;
    background-color: rgb(205, 242, 205);
  }
  #circleDiv {
    border: solid darkred 3px;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    position: absolute;
    z-index: 2;
    box-sizing: border-box;
    offset-path: path('M 50 80 L 350 80');
    animation: moveCirc 5s 3;
  }
  #pinkDiv {
    position: absolute;
    width: 70px;
    height: 70px;
    background-color: hotpink;
    opacity: 0.5;
    z-index: 1;
    offset-path: path('M 50 80 L 350 80');
    offset-anchor: bottom left;
    animation: movePink 5s 3;
    overflow: visible;
  }
  svg {
    position: absolute;
    height: 100%;