I am trying to create a small animation based on an ellipse scheme.
So I have create this one on Figma and export it as SVG so I can get the path.
The thing is that when I put the path in some images that I want to move, I want the eclipse animation to happen around their current position of the image, but the initial point has been moved to the left side.
Here it is
I think you need offset-anchor but it only works in Firefox at present from the looks of things.
I also think there’s a disconnect between the 1 fr, the image.svg fixed width and the fixed path in pixels. Haven’t really played with offset-path before so I’m not sure how you can make it responsive.
Offset anchor only works in Firefox as I said in my last post
Also as I said in my last post the offset path is not responsive so you can’t make it relate to a fluid container. You would need to use a container that is the same pixel size as the path you have defined in order for its position to match. (Or a container that is in some way proportionate to the offset path. )
Offset-path does not work with percentages so has limited use and should only really be used in fixed width and height elements.
I’m not really clear what effect you wanted as your original code had the elements going all over the place. Are the images supposed to spin from where they are or follow each other around the large main container?
You may need to resort to js if you want this responsive or perhaps utilise transform instead of offset-path although you will have to greatly simplify the effect.