<!DOCTYPE html>
<html>
<head>
<style>
#frameDiv {
width: 300px;
height: 300px;
margin: 20px;
position: relative;
border: solid black 1px;
overflow: hidden;
background-color: rgb(205, 242, 205);
}
svg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
path {
opacity: 0.3;
}
img {
position: absolute;
z-index: 1;
width: 70px;
offset-path: path('M 50,150 C 50,275 250,275 250,150 M 250,150 C 250,25 50,25 50,150');
animation: moveDiv linear 7s infinite;
}
@keyframes moveDiv {
100% { offset-distance: 100%; }
}
</style>
</head>
<body>