I'm facing an issue where I want to animate a CSS image based on time constraints, but since it's in CSS, I'm unable to achieve the desired effect. The animation in question is not the sun itself, but rather a yellowish half-circle animation showcased in this example. My goal is to implement that half circle animation onto a completely random shape.
For example, if there's a white canvas with a random deformed circle in the center, how can I fill that circle with the same animation from the aforementioned example? How do I convert that CSS animation into JavaScript or control the CSS so that it stops and starts at specific values?
I don't expect someone to do all the work for me, but some guidance on where to start when utilizing that yellowish feature from the pen would be greatly appreciated.
Thank you.
Below is the code snippet:
<div class="sunmoon">
<h2>Sun & Moon</h2>
...