Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!-- svg drawn by Maxim Kulikov via Noun Project -->

<section class="scene">
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 110 125" style="enable-background:new 0 0 100 100;" xml:space="preserve">
  <g>
     <path class="cloud" d="M80.898,52.577h0.144c-0.01,0.086-0.015,0.173-0.015,0.261c0,1.246,1.014,2.261,2.261,2.261h5.006   c1.247,0,2.261-1.015,2.261-2.261c0-0.142-0.013-0.28-0.038-0.415c1.116-0.384,1.92-1.444,1.92-2.689   c0-1.568-1.276-2.845-2.844-2.845h-8.694c-1.568,0-2.844,1.276-2.844,2.845S79.33,52.577,80.898,52.577z M80.898,48.889h8.694   c0.465,0,0.844,0.379,0.844,0.845c0,0.465-0.379,0.844-0.844,0.844h-1.298c-0.552,0-1,0.447-1,1s0.448,1,1,1   c0.144,0,0.261,0.117,0.261,0.261s-0.117,0.261-0.261,0.261h-5.006c-0.144,0-0.261-0.117-0.261-0.261s0.117-0.261,0.261-0.261   c0.552,0,1-0.447,1-1s-0.448-1-1-1h-2.39c-0.465,0-0.844-0.379-0.844-0.844C80.054,49.268,80.433,48.889,80.898,48.889z"/>
    <path class="cloud" d="M55.636,31.054h0.941c-0.042,0.186-0.065,0.378-0.065,0.576c0,1.421,1.156,2.576,2.576,2.576h7.263   c1.42,0,2.576-1.155,2.576-2.576c0-0.198-0.022-0.392-0.065-0.577c1.479-0.029,2.674-1.242,2.674-2.729   c0-1.506-1.225-2.73-2.73-2.73h-1.698c0.013-0.099,0.02-0.199,0.02-0.302c0-1.27-1.033-2.303-2.302-2.303h-4.608   c-1.27,0-2.302,1.033-2.302,2.303c0,0.103,0.007,0.203,0.02,0.302h-2.299c-1.505,0-2.73,1.225-2.73,2.73   C52.906,29.829,54.131,31.054,55.636,31.054z M55.636,27.594h4.582c0.552,0,1-0.447,1-1s-0.448-1-1-1   c-0.167,0-0.302-0.136-0.302-0.302c0-0.167,0.136-0.303,0.302-0.303h4.608c0.167,0,0.302,0.136,0.302,0.303   c0,0.166-0.136,0.302-0.302,0.302c-0.552,0-1,0.447-1,1s0.448,1,1,1h3.98c0.402,0,0.73,0.328,0.73,0.73s-0.328,0.729-0.73,0.729   h-2.455c-0.552,0-1,0.447-1,1s0.448,1,1,1c0.318,0,0.576,0.259,0.576,0.576s-0.258,0.576-0.576,0.576h-7.263   c-0.318,0-0.576-0.259-0.576-0.576s0.258-0.576,0.576-0.576c0.552,0,1-0.447,1-1s-0.448-1-1-1h-3.453   c-0.402,0-0.73-0.327-0.73-0.729S55.234,27.594,55.636,27.594z"/>
      <g class="sun">
      <path d="M39.794,21.052c0,2.784-2.265,5.049-5.049,5.049c-0.444,0-0.885-0.058-1.31-0.171c-0.534-0.146-1.082,0.175-1.224,0.707   c-0.143,0.534,0.174,1.082,0.708,1.225c0.593,0.159,1.207,0.239,1.826,0.239c3.887,0,7.049-3.162,7.049-7.049   c0-1.383-0.401-2.722-1.159-3.873c-0.303-0.462-0.922-0.588-1.385-0.285c-0.461,0.304-0.588,0.924-0.285,1.385   C39.507,19.103,39.794,20.062,39.794,21.052z"/>
      <path d="M30.035,26.296c0.191,0.171,0.43,0.256,0.668,0.256c0.274,0,0.547-0.112,0.744-0.331c0.369-0.411,0.335-1.043-0.075-1.413   c-1.064-0.956-1.675-2.325-1.675-3.756c0-2.783,2.265-5.048,5.048-5.048c0.898,0,1.78,0.238,2.549,0.688   c0.477,0.281,1.09,0.12,1.369-0.356c0.279-0.477,0.119-1.09-0.357-1.368c-1.076-0.631-2.307-0.964-3.561-0.964   c-3.886,0-7.048,3.162-7.048,7.048C27.697,23.049,28.549,24.96,30.035,26.296z"/>
    </g>
    <g class="mountains">
      <path d="M94,83.996h-2.391v-1.36c1.351-0.533,2.314-2.102,2.314-4.027c0-2.377-1.456-4.238-3.314-4.238   c-1.858,0-3.313,1.861-3.313,4.238c0,1.925,0.963,3.494,2.313,4.027v1.36h-2.015L64.511,41.41c-0.456-0.841-1.333-1.363-2.29-1.363   c-0.956,0-1.833,0.522-2.29,1.363l-5.26,9.704l-6.681-12.683c-0.468-0.889-1.383-1.44-2.387-1.44c-1.003,0-1.918,0.552-2.386,1.44   l-7.234,13.727l-1.661-3.153c-0.391-0.743-1.156-1.204-1.995-1.204c0,0,0,0,0,0c-0.839,0-1.604,0.461-1.996,1.203L11.885,83.996   h-1.478V82.08c1.974-0.579,3.408-2.838,3.408-5.62c0-3.234-1.936-5.769-4.408-5.769C6.936,70.691,5,73.226,5,76.46   c0,2.782,1.434,5.041,3.407,5.62v1.916H6.025c-0.552,0-1,0.447-1,1s0.448,1,1,1H94c0.552,0,1-0.447,1-1S94.552,83.996,94,83.996z    M90.609,76.371c0.622,0,1.314,0.919,1.314,2.238c0,1.318-0.692,2.237-1.314,2.237c-0.621,0-1.313-0.919-1.313-2.237   C89.295,77.29,89.988,76.371,90.609,76.371z M7,76.46c0-2.043,1.103-3.769,2.407-3.769c1.305,0,2.408,1.726,2.408,3.769   s-1.103,3.769-2.408,3.769C8.103,80.229,7,78.503,7,76.46z M26.329,60.889l2.044,2.016c0.195,0.192,0.448,0.288,0.702,0.288   c0.253,0,0.507-0.096,0.702-0.288l2.578-2.54l0.068,0.067c0.394,0.389,1.027,0.383,1.415-0.01c0.388-0.394,0.383-1.026-0.01-1.414   l-0.769-0.759c-0.389-0.385-1.016-0.386-1.405-0.001l-2.578,2.54l-1.582-1.56c-0.064-0.063-0.141-0.098-0.215-0.141l4.823-9.149   c0.06-0.113,0.156-0.137,0.226-0.137s0.167,0.023,0.226,0.136l4.817,9.14l-1.739,1.711l-0.047-0.046   c-0.393-0.389-1.026-0.383-1.414,0.01c-0.388,0.393-0.383,1.026,0.01,1.414l0.748,0.738c0.195,0.192,0.449,0.288,0.703,0.288   c0.253,0,0.507-0.096,0.701-0.287l2.013-1.98l0.771,1.463c0.258,0.488,0.861,0.675,1.351,0.419   c0.488-0.258,0.676-0.862,0.418-1.351l-3.769-7.153l2.375-4.507l1.937,1.91c0.195,0.192,0.448,0.288,0.702,0.288   c0.253,0,0.507-0.096,0.702-0.288l1.126-1.11c0.393-0.388,0.398-1.021,0.01-1.414s-1.021-0.397-1.415-0.01l-0.424,0.418   l-1.582-1.56c-0.028-0.028-0.064-0.038-0.095-0.062l4.535-8.605c0.177-0.336,0.49-0.372,0.617-0.372   c0.127,0,0.44,0.036,0.617,0.372l4.394,8.341c-0.011,0.01-0.024,0.013-0.035,0.023l-1.895,1.863l-2.573-2.54   c-0.39-0.385-1.016-0.384-1.405,0.001l-0.592,0.584c-0.393,0.388-0.397,1.021-0.01,1.414c0.351,0.355,0.902,0.394,1.296,0.109   l2.581,2.548c0.195,0.192,0.449,0.288,0.703,0.288c0.253,0,0.507-0.096,0.701-0.287l2.199-2.163l1.941,3.685l-3.17,5.849   c-0.263,0.485-0.083,1.093,0.403,1.355s1.092,0.083,1.356-0.402l1.492-2.753l1.336,1.317c0.195,0.192,0.449,0.288,0.702,0.288   s0.507-0.096,0.702-0.288l2.578-2.539l2.573,2.539c0.388,0.384,1.013,0.384,1.402,0.002l0.749-0.735   c0.394-0.388,0.398-1.021,0.011-1.414s-1.021-0.398-1.415-0.012l-0.044,0.044l-2.574-2.54c-0.389-0.385-1.015-0.386-1.404,0   l-2.578,2.539l-1.046-1.031l7.092-13.084c0.155-0.286,0.423-0.316,0.531-0.316c0.108,0,0.376,0.03,0.531,0.316l7.082,13.066   l-1.068,1.051l-2.579-2.54c-0.389-0.385-1.014-0.384-1.403-0.001l-0.84,0.826c-0.394,0.387-0.399,1.02-0.012,1.414   c0.387,0.394,1.021,0.398,1.414,0.012l0.139-0.136l2.579,2.54c0.194,0.192,0.448,0.288,0.702,0.288s0.507-0.096,0.701-0.287   l1.359-1.337l14.492,26.737H66.116v-2.088c2.065-0.584,3.569-2.943,3.569-5.851c0-3.36-2.007-5.993-4.569-5.993   c-2.562,0-4.568,2.633-4.568,5.993c0,2.908,1.504,5.267,3.568,5.851v2.089H39.124l2.871-5.297c0.264-0.485,0.083-1.093-0.402-1.355   c-0.486-0.264-1.093-0.083-1.355,0.402l-3.388,6.25h-2.374v-1.36c1.351-0.533,2.313-2.102,2.313-4.027   c0-2.377-1.456-4.238-3.313-4.238c-1.858,0-3.314,1.861-3.314,4.238c0,1.925,0.963,3.494,2.314,4.027v1.36H14.147L26.329,60.889z    M65.116,80.05c-1.392,0-2.568-1.829-2.568-3.993s1.176-3.993,2.568-3.993c1.393,0,2.569,1.829,2.569,3.993   S66.509,80.05,65.116,80.05z M33.476,80.847c-0.622,0-1.314-0.919-1.314-2.237c0-1.319,0.692-2.238,1.314-2.238   c0.621,0,1.313,0.919,1.313,2.238C34.789,79.928,34.097,80.847,33.476,80.847z"/>
      <path d="M43.772,71.225l-2.112,3.896c-0.263,0.485-0.083,1.093,0.403,1.355c0.151,0.082,0.315,0.121,0.476,0.121   c0.355,0,0.699-0.189,0.88-0.523l7.517-13.869c0.263-0.485,0.083-1.093-0.403-1.355c-0.486-0.265-1.094-0.083-1.356,0.402   l-4.259,7.858l-2.803-5.32c-0.257-0.489-0.861-0.676-1.351-0.419c-0.488,0.258-0.676,0.862-0.418,1.351L43.772,71.225z"/>
    </g>
    <path class="cloud1" d="M9.54,47.106c0.001,0,0.002,0,0.003,0l1.548-0.002c-0.017,0.115-0.025,0.231-0.025,0.35   c0.001,1.294,1.056,2.348,2.352,2.348l8.617-0.01c1.295-0.002,2.348-1.058,2.347-2.353c0-0.119-0.009-0.235-0.026-0.35l2.051-0.002   c1.584-0.002,2.872-1.292,2.871-2.877c-0.001-1.584-1.291-2.871-2.875-2.871c-0.001,0-0.002,0-0.003,0l-1.649,0.002   c-0.237,0-0.454,0.083-0.625,0.22c-0.171-0.136-0.388-0.218-0.624-0.218c0,0,0,0-0.001,0l-2.472,0.002   c0.038-0.174,0.058-0.355,0.058-0.541c-0.001-0.679-0.266-1.317-0.747-1.797c-0.48-0.479-1.117-0.742-1.795-0.742   c-0.001,0-0.002,0-0.003,0l-5.809,0.006c-1.402,0.002-2.541,1.144-2.539,2.545c0,0.184,0.02,0.365,0.058,0.541l-0.716,0.001   c-1.584,0.003-2.871,1.294-2.87,2.877c0,0.768,0.3,1.489,0.844,2.031C8.052,46.809,8.773,47.106,9.54,47.106z M9.538,43.358   l3.2-0.003c0.552-0.001,1-0.449,0.999-1.001s-0.448-0.999-1-0.999c0,0,0,0-0.001,0c-0.149-0.049-0.281-0.057-0.384-0.158   c-0.102-0.103-0.159-0.238-0.159-0.383c0-0.299,0.243-0.543,0.541-0.543l5.809-0.006c0,0,0,0,0.001,0   c0.144,0,0.28,0.057,0.382,0.158c0.103,0.103,0.159,0.238,0.159,0.383s-0.056,0.28-0.158,0.383s-0.238,0.159-0.383,0.159   c-0.552,0.001-1,0.449-0.999,1.001s0.448,0.999,1,0.999c0,0,0.001,0,0.001,0l4.956-0.005c0.236,0,0.454-0.083,0.625-0.22   c0.171,0.136,0.388,0.218,0.624,0.218c0,0,0,0,0.001,0l1.65-0.002c0,0,0,0,0.001,0c0.233,0,0.453,0.091,0.618,0.255   c0.165,0.165,0.256,0.385,0.256,0.618c0,0.482-0.391,0.875-0.873,0.875l-4.375,0.005c0,0,0,0,0,0   c-0.552,0.001-0.999,0.449-0.999,1.001s0.448,0.999,1,0.999c0,0,0.001,0,0.001,0h0c0,0,0,0,0,0c0.192,0,0.349,0.156,0.349,0.349   c0,0.193-0.157,0.351-0.349,0.351l-8.616,0.01c-0.193,0-0.351-0.156-0.351-0.35c0-0.126,0.064-0.209,0.102-0.247   s0.12-0.103,0.245-0.103h0.002c0.552-0.001,1-0.448,0.999-1.001c0-0.552-0.448-0.999-1-0.999c0,0,0,0-0.001,0l-3.872,0.004   c0,0,0,0-0.001,0c-0.481,0-0.874-0.392-0.874-0.873S9.057,43.359,9.538,43.358z"/>
    <path class="cloud2" d="M80.898,52.577h0.144c-0.01,0.086-0.015,0.173-0.015,0.261c0,1.246,1.014,2.261,2.261,2.261h5.006   c1.247,0,2.261-1.015,2.261-2.261c0-0.142-0.013-0.28-0.038-0.415c1.116-0.384,1.92-1.444,1.92-2.689   c0-1.568-1.276-2.845-2.844-2.845h-8.694c-1.568,0-2.844,1.276-2.844,2.845S79.33,52.577,80.898,52.577z M80.898,48.889h8.694   c0.465,0,0.844,0.379,0.844,0.845c0,0.465-0.379,0.844-0.844,0.844h-1.298c-0.552,0-1,0.447-1,1s0.448,1,1,1   c0.144,0,0.261,0.117,0.261,0.261s-0.117,0.261-0.261,0.261h-5.006c-0.144,0-0.261-0.117-0.261-0.261s0.117-0.261,0.261-0.261   c0.552,0,1-0.447,1-1s-0.448-1-1-1h-2.39c-0.465,0-0.844-0.379-0.844-0.844C80.054,49.268,80.433,48.889,80.898,48.889z"/>
    <path class="cloud3" d="M55.636,31.054h0.941c-0.042,0.186-0.065,0.378-0.065,0.576c0,1.421,1.156,2.576,2.576,2.576h7.263   c1.42,0,2.576-1.155,2.576-2.576c0-0.198-0.022-0.392-0.065-0.577c1.479-0.029,2.674-1.242,2.674-2.729   c0-1.506-1.225-2.73-2.73-2.73h-1.698c0.013-0.099,0.02-0.199,0.02-0.302c0-1.27-1.033-2.303-2.302-2.303h-4.608   c-1.27,0-2.302,1.033-2.302,2.303c0,0.103,0.007,0.203,0.02,0.302h-2.299c-1.505,0-2.73,1.225-2.73,2.73   C52.906,29.829,54.131,31.054,55.636,31.054z M55.636,27.594h4.582c0.552,0,1-0.447,1-1s-0.448-1-1-1   c-0.167,0-0.302-0.136-0.302-0.302c0-0.167,0.136-0.303,0.302-0.303h4.608c0.167,0,0.302,0.136,0.302,0.303   c0,0.166-0.136,0.302-0.302,0.302c-0.552,0-1,0.447-1,1s0.448,1,1,1h3.98c0.402,0,0.73,0.328,0.73,0.73s-0.328,0.729-0.73,0.729   h-2.455c-0.552,0-1,0.447-1,1s0.448,1,1,1c0.318,0,0.576,0.259,0.576,0.576s-0.258,0.576-0.576,0.576h-7.263   c-0.318,0-0.576-0.259-0.576-0.576s0.258-0.576,0.576-0.576c0.552,0,1-0.447,1-1s-0.448-1-1-1h-3.453   c-0.402,0-0.73-0.327-0.73-0.729S55.234,27.594,55.636,27.594z"/>
     <path class="cloud" d="M9.54,47.106c0.001,0,0.002,0,0.003,0l1.548-0.002c-0.017,0.115-0.025,0.231-0.025,0.35   c0.001,1.294,1.056,2.348,2.352,2.348l8.617-0.01c1.295-0.002,2.348-1.058,2.347-2.353c0-0.119-0.009-0.235-0.026-0.35l2.051-0.002   c1.584-0.002,2.872-1.292,2.871-2.877c-0.001-1.584-1.291-2.871-2.875-2.871c-0.001,0-0.002,0-0.003,0l-1.649,0.002   c-0.237,0-0.454,0.083-0.625,0.22c-0.171-0.136-0.388-0.218-0.624-0.218c0,0,0,0-0.001,0l-2.472,0.002   c0.038-0.174,0.058-0.355,0.058-0.541c-0.001-0.679-0.266-1.317-0.747-1.797c-0.48-0.479-1.117-0.742-1.795-0.742   c-0.001,0-0.002,0-0.003,0l-5.809,0.006c-1.402,0.002-2.541,1.144-2.539,2.545c0,0.184,0.02,0.365,0.058,0.541l-0.716,0.001   c-1.584,0.003-2.871,1.294-2.87,2.877c0,0.768,0.3,1.489,0.844,2.031C8.052,46.809,8.773,47.106,9.54,47.106z M9.538,43.358   l3.2-0.003c0.552-0.001,1-0.449,0.999-1.001s-0.448-0.999-1-0.999c0,0,0,0-0.001,0c-0.149-0.049-0.281-0.057-0.384-0.158   c-0.102-0.103-0.159-0.238-0.159-0.383c0-0.299,0.243-0.543,0.541-0.543l5.809-0.006c0,0,0,0,0.001,0   c0.144,0,0.28,0.057,0.382,0.158c0.103,0.103,0.159,0.238,0.159,0.383s-0.056,0.28-0.158,0.383s-0.238,0.159-0.383,0.159   c-0.552,0.001-1,0.449-0.999,1.001s0.448,0.999,1,0.999c0,0,0.001,0,0.001,0l4.956-0.005c0.236,0,0.454-0.083,0.625-0.22   c0.171,0.136,0.388,0.218,0.624,0.218c0,0,0,0,0.001,0l1.65-0.002c0,0,0,0,0.001,0c0.233,0,0.453,0.091,0.618,0.255   c0.165,0.165,0.256,0.385,0.256,0.618c0,0.482-0.391,0.875-0.873,0.875l-4.375,0.005c0,0,0,0,0,0   c-0.552,0.001-0.999,0.449-0.999,1.001s0.448,0.999,1,0.999c0,0,0.001,0,0.001,0h0c0,0,0,0,0,0c0.192,0,0.349,0.156,0.349,0.349   c0,0.193-0.157,0.351-0.349,0.351l-8.616,0.01c-0.193,0-0.351-0.156-0.351-0.35c0-0.126,0.064-0.209,0.102-0.247   s0.12-0.103,0.245-0.103h0.002c0.552-0.001,1-0.448,0.999-1.001c0-0.552-0.448-0.999-1-0.999c0,0,0,0-0.001,0l-3.872,0.004   c0,0,0,0-0.001,0c-0.481,0-0.874-0.392-0.874-0.873S9.057,43.359,9.538,43.358z"/>
  </g>
</svg>
</section>
            
          
!
            
              body {
  display: flex;
  justify-content: center;
  background-color: #fdfff0;
}
.scene {
  width: 500px;
  margin: 3rem;
}

.mountains {
  fill: #463501;
}

.cloud, .cloud1, .cloud2, .cloud3 {
  transform: translateZ(0);
  transform-origin: 50%;
  opacity: 0.8;
}

.cloud {
  fill: #f8e1ff;
}

.cloud1 {
  fill: #d7e1fe;
}

.cloud2 {
  fill: #d7fcfe;
}

.cloud3 {
  fill: #fed7d7;
}

.cloud {
  transform: translateX(105px);
  animation: cloud--track 15s 1s infinite linear;
}

.cloud1 {
  animation: cloud--track 30s infinite linear;
}

.cloud2 {
  animation: cloud--track 40s infinite linear;
}

.cloud3 {
  transform: translateX(105px);
  animation: cloud--track 35s 5s infinite linear;
}

.sun {
  fill: #fde59b;
  animation: sun--orbit 15s infinite linear;
  transform-origin: 48% 50%;
}

@keyframes sun--orbit {
  0% {
    transform: rotate(360deg);
  }
}

@keyframes cloud--track {
  0% { transform: translateX(105px); }
  50% {transform: translateX(0px);}
  100% {transform: translateX(-105px);}
}


            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console