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

              
                .wrapper
  .arms
  .base
  .link-body
  .body
    .light
  .top
    .elem-1
    .elem-2
      .inner
  .logo
    .inner
      .icon
              
            
!

CSS

              
                $color-background: #333
$color-lantern: ( #3b4c46, #7dc365 )
$color-light: #feff77

=size($width, $height)
  width: percentage($width / 100)
  height: percentage($height / 100)

=position($top, $left)
  position: absolute
  top: percentage($top / 100)
  left: percentage($left / 100)

%pseudo-init
  content: ''
  display: block

body
  margin: 0
  padding: 0
  padding-top: 10vh
  background-color: $color-background

  >.wrapper
    position: relative
    margin: auto
    width: 70vw
    height: 70vw

    >.base
      +size(45, 30)
      +position(65, 27.5)
      border-radius: 50%
      background: radial-gradient(nth($color-lantern, 2), nth($color-lantern, 1) 80%)
      overflow: hidden
      border-bottom: 0.5vw solid nth($color-lantern, 1)

      &::after
        @extend %pseudo-init
        +size(90, 77)
        +position(3, 5)
        background: radial-gradient(nth($color-lantern, 2), nth($color-lantern, 1) 80%)
        border-radius: 50%
        border-bottom: 0.5vw solid lighten(nth($color-lantern, 1), 5%)

.body
  +size(55, 50)
  +position(30, 22.5)
  background: radial-gradient(nth($color-lantern, 2), nth($color-lantern, 1) 60%)
  border-radius: 50%

.link-body
  +size(60, 10)
  +position(50, 20)
  border-radius: 4% / 50%
  background-color: darken(nth($color-lantern, 1), 2%)

.light
  +size(60, 60)
  +position(40, 20)
  left: calc(20% - 2vw)
  background: radial-gradient(nth($color-lantern, 2), nth($color-lantern, 1) 80%)
  border-radius: 50%
  border: 2vw solid nth($color-lantern, 1)
  overflow: hidden
  box-shadow: 0 -3vw 0 -0.5vw lighten(nth($color-lantern, 1), 2%)

  &::after
    @extend %pseudo-init
    +size(90, 90)
    +position(-15, 5)
    background: radial-gradient(lighten($color-light, 20%), $color-light)
    border-radius: 50%
    animation: light 2s linear infinite alternate

.top
  +size(40, 30)
  +position(15, 30)
  perspective-origin: top
  perspective: 7.5vw

  .elem-1
    +size(90, 80)
    +position(30, 5)
    background: radial-gradient(nth($color-lantern, 2) 40%, nth($color-lantern, 1) 70%)
    border-radius: 0 0 50% 50% / 0 0 50% 50%
    transform: rotateX(-5deg)

  .elem-2
    +size(100, 70)
    +position(0, 0)
    background-color: darken(nth($color-lantern, 1), 2%)
    border-radius: 50%

    .inner
      +size(90, 90)
      +position(5, 5)
      background: radial-gradient(nth($color-lantern, 2) 40%, nth($color-lantern, 1) 70%)
      border-radius: 50%

.logo
  +size(36, 18.7)
  +position(50, 32)
  border-radius: 50%
  overflow: hidden
  transform: translateY(-23.6vw)

  .inner
    @extend %pseudo-init
    +size(100, 100)
    +position(55, 0)
    background-color: nth($color-lantern, 1)
    border-radius: 50%

    .icon
      +size(20, 20)
      +position(10, 0)
      left: calc(40% - 1.5vw)
      border-radius: 50%
      border: 1.5vw solid nth($color-lantern, 2)

      &::after
        @extend %pseudo-init
        +size(170, 50)
        +position(-70, -35)
        background-color: nth($color-lantern, 2)
        box-shadow: 0 4.5vw nth($color-lantern, 2)

.arms
  +size(80, 55)
  +position(5, 0)
  left: calc(10% - 1.5vw)
  border: 1.5vw solid nth($color-lantern, 1)
  border-radius: 50%

  &::after
    @extend %pseudo-init
    +size(35, 10)
    +position(-5, 32.5)
    background: radial-gradient(nth($color-lantern, 2), darken(nth($color-lantern, 1), 5%))
    border-radius: 5% / 50%

@keyframes light
  0%
    box-shadow: 0 0 1vw 0 $color-light
  100%
    box-shadow: 0 0 9vw 0 $color-light

              
            
!

JS

              
                // https://www.neckersbox.eu
              
            
!
999px

Console