SVG Fundamentals Sunrise/Sunset
✓ Published0🌍 Public
A 15-second SVG animation depicts a day-night cycle over a stylized landscape. The sun rises and sets by translating its circle's center position along the y-axis, while the sky and land gradients continuously shift color between aliceblue and indigo. Using the W3C SVG `<animate>` element, the example synchronizes color stops and the sun's `cy` attribute to create seamless loops, with all geometry defined through inline SVG paths and `<rect>` elements.
AI-generated descriptionSunrise /Sunset Animation
MIT Licensed