cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

            
              svg#maks(xmlns='http://www.w3.org/2000/svg', xmlns:xlink='http://www.w3.org/1999/xlink', viewbox='-50 0 1000 1000')
  defs
    clippath#clip-path
      circle(cx='450', cy='500', r='450')
    radialgradient#sky-gradient(cx='565', cy='533', r='491.15', gradientunits='userSpaceOnUse')
      stop.sky-bright(offset='0')
      stop.sky-dark(offset='1')
    lineargradient#mountain-gradient(x1='353', y1='735.58', x2='353', y2='468.49', gradientunits='userSpaceOnUse')
      stop.mountain-bright(offset='0')
      stop.mountain-dark(offset='1')
    lineargradient#hill1-gradient(x1='498', y1='827.07', x2='498', y2='537.27', gradientunits='userSpaceOnUse')
      stop.hills-bright(offset='0')
      stop.hills-dark(offset='1')
    lineargradient#hill2-gradient(x1='308', y1='1064.12', x2='308', y2='733.42', gradientunits='userSpaceOnUse')
      stop.hills2-bright(offset='0')
      stop.hills2-dark(offset='1')
  g.cls-3(clip-path='url(#clip-path)')
    rect#sky.sky(width='1000', height='1000')
    g#mountains
      path.mountains(d='M231 349l65 81 48-41 71 69 115-60 178 120v334L0 846l-2-300 233-197')
      path.peaks(d='M173 398l22 36 38-30 39-3-41-52-58 49m135 22l28 24 40-24-32-31-36 31m185-2l32 26 46-19-41-27-37 20')
    g#hills
      path.hills(d='M998,1017H-2s0-277,0-375c84-48,211-79,355-79h47c74-40,176-64,289-64s309,75,309,75Z')
      ellipse.hill(cx='308', cy='986', rx='478', ry='295') 
    g#particles
      -i = 10
      while i--
        g.particle-conntainer
          circle.particle(r=Math.random()*5+5 cx=0 cy=400+i*50)
    g#tree
      path.tree(d='M971,336c-46,23-111,66-160,143a385,385,0,0,0-22,41q-4-105-7-209-2-68-2-135c0-23,0-45,0-68s0-45,1-68H707q1,34,1,68c0,23,0,45,0,68s0,34-1,50a327,327,0,0,1-97-17c-17-6-20-9-22-10-28-23-27-88,2-157L564,31c-36,84-33,159,6,191,4,4,11,8,30,14a356,356,0,0,0,106,19q-1,28-1,56-3,105-7,209l-2-2a208,208,0,0,0-40-36,204,204,0,0,0-48-24l-16-5-4-5-9-15a115,115,0,0,1-7-16l-2-9V387c0-1,0-3,0-4a118,118,0,0,1,1-18,123,123,0,0,1,11-34,124,124,0,0,0-13,34,121,121,0,0,0-3,18c0,2,0,3,0,5v23l2,9a122,122,0,0,0,6,18l6,13-21-5c-17-4-33-8-48-14a144,144,0,0,1-42-25l-9-9-8-9a167,167,0,0,1-14-21,191,191,0,0,1-11-23,252,252,0,0,1-9-24,253,253,0,0,0,7,25,194,194,0,0,0,10,24,171,171,0,0,0,13,22l8,10,9,10a154,154,0,0,0,43,30c16,8,32,13,49,18s32,10,47,16a178,178,0,0,1,75,59,201,201,0,0,1,20,32v15q-6,135-15,270-5,68-10,135c-2,23-4,45-6,68s-4,45-7,68H829q-4-34-7-68c-2-23-4-45-6-68q-6-68-10-135-9-127-15-255a357,357,0,0,1,44-102c45-71,105-112,148-133Z')
      path.bark(d="M703 370l40 12-40 9m2-99l46 12-46 8m2-162l25 6-25 5m-8 315l40 12-40 9m-7 140l59 12-60 9m-8 132l61 12-63 9m119-62l-56-11 55-8m-13-278l-42-8 41-6m-3-93l-28-3 28-3m-3-126l-25-8 25-4")
.title spring
            
          
!
            
              .tree {
  fill: #fff;
}
.sky-bright{ stop-color:#fff}
.sky-dark { stop-color:oc(7,2)}

.mountain-bright{ stop-color:oc(5,5)}
.mountain-dark { stop-color:oc(4,3)}

.hills-bright{ stop-color:oc(5,6)}
.hills-dark { stop-color:oc(4,7)}

.hills2-bright{ stop-color:oc(5,7)}
.hills2-dark { stop-color:oc(4,8)}


.sky {
  fill: url(#sky-gradient);
}

.mountains{
  fill: url(#mountain-gradient);
}

.peaks {
  fill: #fff;
}

.hills{
  fill: url(#hill1-gradient);
}

.hill {
  fill: url(#hill2-gradient);
}


/*Page Setup*/

@import url('https://fonts.googleapis.com/css?family=Unica+One');
svg {
  width: 100vw;
  height: 80vh;
}

.particle-conntainer {
  fill:rgba(255,255,255,.6);
  stroke: rgba(255,255,255,.3);
  stroke-width: 10;
  animation: float 10s linear infinite; 
  --amplitude: 50px;
  .particle{
    animation: occilate 2s ease-in-out infinite alternate;
  }
  
  @for $i from 1 through 10{
    &:nth-child(#{$i}){
      --amplitude:  10px + random(40)*1px;
      $duration: 10s + random(40)*0.5s;
      animation-duration: $duration;
      animation-delay: $i * random(10)* -0.5s;
      .particle{
        animation-duration:  $duration/4;
      }
    }
  }
}

@keyframes occilate{
  100%{
    transform: translate(0,var(--amplitude));
  }
}

@keyframes float{
  100%{
    transform: translate(1000px,0);
  }
}


body {
  background: oc(3,1);
  color: oc(5,9);
  display: flex; 
  align-items:center;
  justify-content: center;
  flex-direction: column;
}
.title {
  height: 10vh;
  line-height: 10vh;
  font-size: 8vh;
  padding: 2.5vh;
  margin: 0;
  border-top: 1px solid;
  border-bottom: 1px solid;
  font-family: 'Unica One', cursive;
}
            
          
!
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.
Loading ..................

Console