123

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{:version => "1.1", :xmlns => "http://www.w3.org/2000/svg"}
  %defs
    %filter#goo
      %fegaussianblur{:in => "SourceGraphic", :result => "blur", :stddeviation => "10"}
      %fecolormatrix{:in => "blur", :mode => "matrix", :result => "goo", :values => "1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 18 -7"}
      %feblend{:in => "SourceGraphic", :in2 => "goo"}
      
- (1..200).each do |i|
  %span.particle
  
  
  
            
          
!
            
              @import "compass"

body
  overflow-x: hidden
  background-image: linear-gradient(120deg, rgba(#e0c3fc,0.75) 0%, rgba(#8ec5fc,0.75) 100%)
  margin: 0
  padding: 0
  height: 100vh
  overflow: hidden
  filter: url('#goo')

.particle 
  position: absolute
  border-radius: 50%
  
  
@include keyframes(float)
  0%,100%
    transform: translateY(0)
  50%
    transform: translateY(180px)

@include keyframes(floatReverse)
  0%,100%
    transform: translateY(0)
  50%
    transform: translateY(-180px)
  
@include keyframes(float2)
  0%,100%
    transform: translateY(0)
  50%
    transform: translateY(280px)

@include keyframes(floatReverse2)
  0%,100%
    transform: translateY(0)
  50%
    transform: translateY(-280px)    
 
@mixin animation ($delay, $duration, $animation)
  animation-delay: $delay
  animation-duration: $duration
  animation-name: $animation
  animation-iteration-count: infinite
  animation-fill-mode: forwards
  
$anims: float, floatReverse,float2, floatReverse2

@for $i from 1 through 400
  .particle:nth-child(#{$i})
    $width: random(15)+10
    $speed: random(20)+20
    $delay: random(10)*0.1
    $opacity: random(10)*0.1
    $anim: nth($anims, random(length($anims)))
    height: $width + px
    width: $width + px
    left: percentage(random(100)) /100 
    top: percentage(random(100)) /100
    background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%)
    @include animation($delay+s, $speed+s, $anim)
            
          
!
            
              //Nothing to see here
            
          
!
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