Skip to content
svg3.svg 4.86 KiB
Newer Older
tommy's avatar
tommy committed
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 400 400">

    <!-- Background -->
    <rect width="400" height="400" style="fill: black" opacity="0">
        <animate
                id ="animation3"
                attributeName="opacity"
                from="0"
                to="1"
                dur="5s"
                begin="0s;animation4.end"/>

        <animate
                id ="animation4"
                attributeName="opacity"
                from="1"
                to="0"
                dur="5s"
                begin="animation3.end"/>
    </rect>

    <!-- Ground -->
    <rect x="-10" y="310" width="420" height="100" style="fill: greenyellow; stroke: black; stroke-width: 2">
    </rect>

    <!-- Sun -->
    <circle r="100" cx="5" cy="5" style="fill: yellow; stroke: black; stroke-width: 2">
        <animate
                id ="animation1"
                attributeName="opacity"
                from="1"
                to="0"
                dur="5s"
                begin="0s;animation2.end"/>

        <animate
                id ="animation2"
                attributeName="opacity"
                from="0"
                to="1"
                dur="5s"
                begin="animation1.end"/>
    </circle>

    <!-- Sunshine -->
    <line x1="115" y1="30" x2="175" y2="60" style="stroke: yellow; stroke-width: 3">
        <animate
                id ="animation1"
                attributeName="opacity"
                from="1"
                to="0"
                dur="5s"
                begin="0s;animation2.end"/>

        <animate
                id ="animation2"
                attributeName="opacity"
                from="0"
                to="1"
                dur="5s"
                begin="animation1.end"/>
    </line>
    <line x1="100" y1="70" x2="155" y2="105" style="stroke: yellow; stroke-width: 3">
        <animate
                id ="animation1"
                attributeName="opacity"
                from="1"
                to="0"
                dur="5s"
                begin="0s;animation2.end"/>

        <animate
                id ="animation2"
                attributeName="opacity"
                from="0"
                to="1"
                dur="5s"
                begin="animation1.end"/>
    </line>
    <line x1="70" y1="100" x2="120" y2="140" style="stroke: yellow; stroke-width: 3">
        <animate
                id ="animation1"
                attributeName="opacity"
                from="1"
                to="0"
                dur="5s"
                begin="0s;animation2.end"/>

        <animate
                id ="animation2"
                attributeName="opacity"
                from="0"
                to="1"
                dur="5s"
                begin="animation1.end"/>
    </line>

    <!-- Moon -->
    <circle r="100" cx="395" cy="5" style="fill: lightgoldenrodyellow; stroke: black; stroke-width: 2">
        <animate
                id ="animation3"
                attributeName="opacity"
                from="0"
                to="1"
                dur="5s"
                begin="0s;animation4.end"/>

        <animate
                id ="animation4"
                attributeName="opacity"
                from="1"
                to="0"
                dur="5s"
                begin="animation3.end"/>
    </circle>
    <circle r="15" cx="340" cy="25" style="stroke: goldenrod; stroke-width: 3; fill: #fced9f">
        <animate
                id ="animation3"
                attributeName="opacity"
                from="0"
                to="1"
                dur="5s"
                begin="0s;animation4.end"/>

        <animate
                id ="animation4"
                attributeName="opacity"
                from="1"
                to="0"
                dur="5s"
                begin="animation3.end"/>
    </circle>
    <circle r="10" cx="385" cy="45" style="stroke: goldenrod; stroke-width: 3; fill: #fced9f">
        <animate
                id ="animation3"
                attributeName="opacity"
                from="0"
                to="1"
                dur="5s"
                begin="0s;animation4.end"/>

        <animate
                id ="animation4"
                attributeName="opacity"
                from="1"
                to="0"
                dur="5s"
                begin="animation3.end"/>
    </circle>
    <circle r="12" cx="350" cy="65" style="stroke: goldenrod; stroke-width: 3; fill: #fced9f">
        <animate
                id ="animation3"
                attributeName="opacity"
                from="0"
                to="1"
                dur="5s"
                begin="0s;animation4.end"/>

        <animate
                id ="animation4"
                attributeName="opacity"
                from="1"
                to="0"
                dur="5s"
                begin="animation3.end"/>
    </circle>
</svg>