Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="wrapper">
    <svg class="scene" id="Layer_1" version="1.1" viewbox="0 0 720 720" x="0px"
    xmlns="http://www.w3.org/2000/svg" y="0px">
    <defs>
        <lineargradient gradienttransform="matrix(1 0 0 -1 0 721)"
        gradientunits="userSpaceOnUse" id="sun__gradient" x1="360" x2="360" y1=
        "165.3398" y2="553.9531">
            <stop offset="0" style="stop-color:#EEC486"></stop>
            <stop offset="0.2823" style="stop-color:#EECF8D"></stop>
            <stop offset="0.6909" style="stop-color:#EEDB95"></stop>
            <stop offset="1" style="stop-color:#EFDF98"></stop>
        </lineargradient>
        <lineargradient gradienttransform="matrix(1 0 0 -1 0 721)"
        gradientunits="userSpaceOnUse" id="cloud__left" x1="110.0503" x2=
        "110.0503" y1="546.2012" y2="434.3008">
            <stop offset="0" style="stop-color:#FFFFFF"></stop>
            <stop offset="1" style="stop-color:#FFFFFF;stop-opacity:0"></stop>
        </lineargradient>
        <lineargradient gradienttransform="matrix(1 0 0 -1 0 721)"
        gradientunits="userSpaceOnUse" id="cloud__top" x1="206.3506" x2=
        "206.3506" y1="602.1006" y2="490.2012">
            <stop offset="0" style="stop-color:#FFFFFF"></stop>
            <stop offset="1" style="stop-color:#FFFFFF;stop-opacity:0"></stop>
        </lineargradient>
        <lineargradient gradienttransform="matrix(1 0 0 -1 0 721)"
        gradientunits="userSpaceOnUse" id="cloud__right" x1="538.9492" x2=
        "538.9492" y1="496.7012" y2="384.8008">
            <stop offset="0" style="stop-color:#FFFFFF"></stop>
            <stop offset="1" style="stop-color:#FFFFFF;stop-opacity:0"></stop>
        </lineargradient>
    </defs>
    <g id="minarepakistan">
        <g class="sun" id="sun">
            <circle class="sun__three" cx="361.5" cy="361.5" r="276"></circle>
            <circle class="sun__two" cx="361.5" cy="361.5" r="250.5"></circle>
            <circle class="sun__one" cx="361.5" cy="361.5" r="220.5"></circle>
            <circle class="sun__main" cx="360" cy="360" fill=
            "url(#sun__gradient)" r="193.5"></circle>
        </g>
        <g class="clouds" id="clouds">
            <path class="cloud__left" d=
            "M54.2,286.7c0,0-31.4-6.7-31.4-36.7s26.7-39.9,36.5-39.9c9.8,0,13.3,1.6,13.3,1.6 s4.4-36.9,41.2-36.9c36.8,0,41.5,36.4,41.4,39.8c0,3.4,0.2,4.8-0.6,9.2c0,0,5.2-1.7,12.6-1.7c10.8,0,30.1,8,30.1,34 s-30.4,30.6-30.4,30.6H54.2L54.2,286.7z"
            fill="url(#cloud__left)"></path>
            <path class="cloud__top" d=
            "M150.5,230.8c0,0-31.4-6.7-31.4-36.7s26.7-39.9,36.5-39.9c9.8,0,13.3,1.6,13.3,1.6 s4.4-36.9,41.2-36.9c36.8,0,41.5,36.4,41.4,39.8c0,3.4,0.2,4.8-0.6,9.2c0,0,5.2-1.7,12.6-1.7c10.8,0,30.1,8,30.1,34 s-30.4,30.6-30.4,30.6H150.5L150.5,230.8z"
            fill="url(#cloud__top)"></path>
            <path class="cloud__right" d=
            "M483.1,336.2c0,0-31.399-6.7-31.399-36.7s26.7-39.9,36.5-39.9s13.3,1.6,13.3,1.6 s4.4-36.9,41.2-36.9s41.5,36.4,41.399,39.8c0,3.4,0.2,4.8-0.6,9.2c0,0,5.2-1.7,12.6-1.7c10.801,0,30.101,8,30.101,34 s-30.4,30.6-30.4,30.6H483.1z"
            fill="url(#cloud__right)"></path>
        </g>
        <g class="minar" id="minar">
            <path d=
            "M482.3,720c0,0-42.5-20.3-42.5-57.9c0-37.6,37-46.6,37-46.6s3.601-0.5,3.601-4.7 s-5.7-2.899-5.7-2.899l-15.601,2.6c0,0-9.1-10.4-34.1-10.4s-28.4,10.4-28.4,10.4s-9.899-16.9-38.3-16.9c-28.399,0-36,17.2-36,17.2 s-8.6-10.899-35.4-10.899c-20.6,0-25.5,11.199-25.5,11.199s-10.9-3.899-21.4-2.3c-5,1.3,0,5.7,0,5.7s38.3,10.9,38.3,48.7 S237.8,720,237.8,720h30.3c0,0,35.2-57.9,55.8-53.9c20.6,3.9-6,53.7-6,53.7H334c0,0,5.1-54.5,26-54.5s23.8,54.5,23.8,54.5h16.7 c0,0-25-43.5-9.9-52.399C405.7,658.5,442.2,701.8,451.1,720H482.3L482.3,720z"
            id="base"></path>
            <g id="bottom_tower">
                <path d=
                "M294.9,604c0,0,28.4-47.2,34.7-379.7H389c0,0,3.1,313.2,37.5,379.7l-29.6,9l-71.2,2.7L294.9,604z M372.8,227.5c-2.6,128.7,11.5,377.3,11.5,377.3l12.601,8.3l18.199-8.3C383.3,549.6,380.7,227.5,380.7,227.5H372.8z M337.6,227.5 c0,0-2.6,322.1-34.399,377.3l22.5,10.9l8.3-10.9c0,0,14.1-248.6,11.5-377.3H337.6z M353.5,227.5c0,0,2.6,366.4-9.9,376.8H377 c0,0-23.8-16.2-12.5-377.3L353.5,227.5z"></path>
                <polygon points=
                "312.1,558.7 404.4,558.7 410.9,582.1 305.6,582.1"></polygon>
                <path d=
                "M322.8,471.1c0.8,0,73,0,73,0v18.2H321L322.8,471.1z"></path>
                <rect height="7.6" width="64.6" x="327.5" y="398.7"></rect>
                <rect height="7" width="56" x="329.8" y="321"></rect>
            </g>
            <path d=
            "M402.3,219.4c0,7.1-5.7,12.8-12.8,12.8h-59.7c-7.1,0-12.8-5.7-12.8-12.8l0,0 c0-7.1,5.7-12.8,12.8-12.8h59.7C396.6,206.6,402.3,212.4,402.3,219.4L402.3,219.4z"
            id="bottom_divider"></path>
            <g id="middle_tower">
                <rect height="62" width="6" x="337.9" y="146.2"></rect>
                <rect height="62" width="6" x="348.9" y="146.2"></rect>
                <rect height="62" width="6" x="362.7" y="146.2"></rect>
                <rect height="62" width="6" x="375.7" y="146.2"></rect>
            </g>
            <path d=
            "M394.5,139.9c0,5.2-4.2,9.4-9.4,9.4h-51.6c-5.2,0-9.4-4.2-9.4-9.4l0,0 c0-5.2,4.2-9.4,9.4-9.4h51.6C390.3,130.5,394.5,134.7,394.5,139.9L394.5,139.9z"
            id="top_divider"></path>
            <g id="top_tower">
                <rect height="51.9" width="4.601" x="347.3" y="80.8"></rect>
                <rect height="51.9" width="4.6" x="358.4" y="80.8"></rect>
                <rect height="51.9" width="4.6" x="368.7" y="80.8"></rect>
            </g>
            <path d=
            "M342.1,82.3h34.7c0,0,4.601-17.8-11.1-25.8c0,0-4.5-2.7-5.601-5.4L359.7,26.3l0,0l-0.5,25.1 c0,0-0.8,2.4-6.101,5.1C346.9,59.7,340.9,65.4,342.1,82.3z"
            id="top"></path>
        </g>
    </g></svg>
</div>
              
            
!

CSS

              
                * {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.wrapper {
    height: 100vh;
    width: 100vw;
    background: -webkit-linear-gradient(top,#d9625d,#edc080);
    background: linear-gradient(to bottom,#d9625d,#edc080);
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.scene {
    width: 50%;
    margin: 0;
}

.sun__three {
    opacity: .1;
    fill: #FEC986;
    -webkit-transform: scale(0.65);
    transform: scale(0.65);
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-animation: scale3 9s ease-out infinite;
    animation: scale3 9s ease-out infinite;
}

.sun__two {
    opacity: .2;
    fill: #FEC986;
    -webkit-transform: scale(0.75);
    transform: scale(0.75);
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-animation: scale2 9s 3s ease-out infinite;
    animation: scale2 9s 3s ease-out infinite;
}

.sun__one {
    opacity: .3;
    fill: #FEC986;
    -webkit-transform: scale(0.85);
    transform: scale(0.85);
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-animation: scale1 9s 6s ease-out infinite;
    animation: scale1 9s 6s ease-out infinite;
}

.cloud__left {
    -webkit-animation: cloudLeft 5s infinite ease-in-out alternate;
    animation: cloudLeft 5s infinite ease-in-out alternate;
}

.cloud__top {
    -webkit-animation: cloudTop 5s infinite ease-in-out alternate;
    animation: cloudTop 5s infinite ease-in-out alternate;
}

.cloud__right {
    -webkit-animation: cloudRight 3s infinite ease-in-out alternate;
    animation: cloudRight 3s infinite ease-in-out alternate;
}

.minar path,.minar rect,.minar polygon {
    fill: #2F323C;
}

@-webkit-keyframes scale1 {
    0% {
        -webkit-transform: scale(0.85);
        transform: scale(0.85);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1.25);
        transform: scale(1.25);
        opacity: 0;
    }
}

@keyframes scale1 {
    0% {
        -webkit-transform: scale(0.85);
        transform: scale(0.85);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1.25);
        transform: scale(1.25);
        opacity: 0;
    }
}

@-webkit-keyframes scale2 {
    0% {
        -webkit-transform: scale(0.75);
        transform: scale(0.75);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
        opacity: 0;
    }
}

@keyframes scale2 {
    0% {
        -webkit-transform: scale(0.75);
        transform: scale(0.75);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
        opacity: 0;
    }
}

@-webkit-keyframes scale3 {
    0% {
        -webkit-transform: scale(0.65);
        transform: scale(0.65);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes scale3 {
    0% {
        -webkit-transform: scale(0.65);
        transform: scale(0.65);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0;
    }
}

@-webkit-keyframes cloudLeft {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    100% {
        -webkit-transform: translateX(-23px);
        transform: translateX(-23px);
    }
}

@keyframes cloudLeft {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    100% {
        -webkit-transform: translateX(-23px);
        transform: translateX(-23px);
    }
}

@-webkit-keyframes cloudTop {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    100% {
        -webkit-transform: translateX(23px);
        transform: translateX(23px);
    }
}

@keyframes cloudTop {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    100% {
        -webkit-transform: translateX(23px);
        transform: translateX(23px);
    }
}

@-webkit-keyframes cloudRight {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    100% {
        -webkit-transform: translate(-10px,20px);
        transform: translate(-10px,20px);
    }
}

@keyframes cloudRight {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    100% {
        -webkit-transform: translate(-10px,20px);
        transform: translate(-10px,20px);
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console