Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                .environment
  .aura
    .he
      -(1..4).each do |i|
        .part
%svg
  %defs
    %filter#goo
      %feGaussianBlur{in: "SourceGraphic", result: "blur", stdDeviation: "10"}
      %feColorMatrix{in: "blur", mode: "matrix", values: "1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 21 -7", result: "goo"}
      %feBlend{in: "goo", in: "SourceGraphic", result: "mix"}
              
            
!

CSS

              
                @import "compass/css3"

=keyframes($animation-name)
  @-webkit-keyframes #{$animation-name}
    @content

  @-moz-keyframes #{$animation-name}
    @content

  @keyframes #{$animation-name}
    @content

body
  overflow: hidden
  height: 100vh
.environment
  position: absolute
  top: 0
  left: 0
  width: 100%
  height: 100%
  background: linear-gradient(5deg, #05100F, #033649)
  
.aura
  position: absolute
  top: 0
  left: 0
  width: 100%
  height: 100%
  border-radius: 50%
  -webkit-filter: url("#goo")
  filter: url(#goo)
.he
  cursor: pointer
  position: relative
  top: 45%
  left: 45%
  animation: rotate 20s infinite
  opacity: 1
  @include transition(all 0.3s)
  &:before, &:after
    content: ''
    position: absolute
    width: 90px
    height: 90px
    box-shadow: 0 0 90px 10px rgb(248, 248, 248), 0 0 15px 26px rgba(248, 248, 248, 0.3)
    border-radius: 50%
    margin: 0
    @include transition(all 0.3s)
    &:before
      top: 0
      left: 0
    &:after
      bottom: 50%
      right: 50%
      width: 10px
      height: 10px
      background-color: #9ff
      z-index: 2
  .part
    position: absolute
    top: 0
    left: 0
    width: 90px
    height: 90px
    background-color: #6EF0E4
    border-radius: 50%
    box-shadow: 0 0 18px 6px rgba(3, 76, 86, 0.5), 0 0 4px 10px rgba(19, 115, 23, 0.3)
    animation: part-1 5s infinite
    &:before, &:after
      content: ''
      position: absolute
      width: 20px
      height: 20px
      background-color: #6870E4
      box-shadow: 0 0 18px 6px rgb(114, 68, 196), 0 0 15px 26px rgba(248, 248, 248, 0.3)
      border-radius: 50%
    &:before
      top: 0
      left: 0
    &:after
      bottom: 0
      right: 0
      
    &:nth-child(2)
      animation: part-2 5s infinite
    &:nth-child(3)
      animation: part-3 5s infinite
    &:nth-child(4)
      animation: part-4 5s infinite
  &:hover
    opacity: 0.5
    .part
      &:before, &:after
        animation: part 5s infinite 
    
+keyframes(part)
  30%
    margin: -106px -106px
  50%
    margin: 106px 106px
  70%
    margin: -106px -106px
  
+keyframes(part-1)
  30%
    top: -20px
    left: -20px
  50%
    top: 0
    left: 0
  70%
    top: -40px
    left: -40px
  
+keyframes(part-2)
  30%
    top: 20px
    left: 20px
  50%
    top: 0
    left: 0
  70%
    top: 40px
    left: 40px
  
+keyframes(part-3)
  30%
    top: -20px
    left: 20px
  50%
    top: 0
    left: 0
  70%
    top: -40px
    left: 40px
  
+keyframes(part-4)
  30%
    top: 20px
    left: -20px
  50%
    top: 0
    left: 0
  70%
    top: 40px
    left: -40px

+keyframes(rotate)
  0%
    @include rotate(0deg)
  50%
    @include rotate(random(10) + deg)
  75%
    @include rotate(random(5) + deg)
  100%
    @include rotate(0deg)

              
            
!

JS

              
                
              
            
!
999px

Console