I try to find a way, how it's possible to translate a image (showed below) within a given polygon border. When the image is over this border, than I want to cut this part of the image. I tried to use the clip (outdated and doesn't have any polygon shapes) and clip-path (cuts the image itself, not the border within the image should move) command, but until now without any useful results.
For now, the code snippet of my box with all it's contents:
<div id="box">
<span class="b0"><img src="..."></span>
</div>
I translate the image with an webkit-transform command in css like that:
#box .b0
{
webkit-transform : animate1 30s 0s infinite;
}
And my animation is given like that:
@keyframes animate1
{
0% { -webkit-transform : translateX(0px); }
100% { -webkit-transform : translateX(-100px); }
}
All of this keyframes are modified for the different browser types and they work without any problem. Now I want this animated image to translate within a given polygon border, like you can see HERE in example (a). In example (b) you see the current result, which is not working.