Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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.

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

              
                <div class="baumannzone">
  <div class="top-line"></div> <span>by</span> <span>Jorge Baumann</span>
  <nav class="social-links"> <a href="https://twitch.tv/baumannzone" target="_blank"> <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
        <title>Twitch</title>
        <path d="M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z" fill="#9146FF" />
      </svg> </a> <a href="https://www.youtube.com/c/RambitoJS"> <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
        <title>YouTube</title>
        <path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" fill="#f90201" />
      </svg> </a> <a href="https://twitter.com/baumannzone"> <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
        <title>Twitter</title>
        <path d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z" fill="#1DA1F2" />
      </svg> </a> <a href="https://instagram.com/baumannzone"> <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
        <title>Instagram</title>
        <path d="M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z" fill="#E4405F" />
      </svg> </a> <a href="https://github.com/baumannzone/"> <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
        <title>GitHub</title>
        <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" fill="#181717" />
      </svg> </a> </nav>
</div>

<div class="rings">
  <div class="ring ring-blue"></div>
  <div class="ring ring-yellow"></div>
  <div class="ring ring-black"></div>
  <div class="ring ring-green"></div>
  <div class="ring ring-red"></div>
</div>
              
            
!

CSS

              
                $blue: #0082c9;
$yellow: #fcb32e;
$black: #000;
$green: #30a751;
$red: #ef314e;

@mixin ps {
  content: "";
  position: absolute;
}

@mixin b($w, $h) {
  width: $w;
  height: $h;
}

html {
  box-sizing: border-box;
  margin-top: 15rem;
}

body {
  background: #fffeee;
  display: grid;
  place-items: center;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

.rings {
  position: relative;
  width: 620px;
  animation: brillito 3.5s;

  .ring {
    position: absolute;
    @include b(200px, 200px);
    border-radius: 100%;
    border-width: 20px;
    border-style: solid;
    animation: animation2 2s, animation1 1s 2s;
    

    &-blue {
      color: $blue;
      left: 0;

      &::after {
        @include ps;
        @include b(200px, 200px);
        border-radius: 100%;
        top: -20px;
        right: -20px;
        border: 20px solid transparent;
        border-right: 20px solid currentcolor;
        z-index: 2;
      }
    }

    &-yellow {
      color: $yellow;
      top: 100px;
      left: 105px;

      &::after {
        @include ps;
        @include b(200px, 200px);
        border-radius: 100%;
        top: -20px;
        right: -20px;
        border: 20px solid transparent;
        border-top: 20px solid currentcolor;
        z-index: 1;
      }
    }

    &-black {
      color: $black;
      left: 210px;

      &::after {
        @include ps;
        @include b(200px, 200px);
        border-radius: 100%;
        top: -20px;
        right: -20px;
        border: 20px solid transparent;
        border-bottom: 20px solid currentcolor;
        z-index: 1;
      }
      &::before {
        @include ps;
        @include b(200px, 200px);
        border-radius: 100%;
        top: -20px;
        right: -20px;
        border: 20px solid transparent;
        border-right: 20px solid currentcolor;
        z-index: 2;
      }
    }

    &-green {
      color: $green;
      top: 100px;
      left: 315px;
      z-index: 1;

      &::after {
        @include ps;
        @include b(200px, 200px);
        border-radius: 100%;
        top: -20px;
        right: -20px;
        border: 20px solid transparent;
        border-left: 20px solid currentcolor;
        z-index: 1;
      }
    }

    &-red {
      color: $red;
      left: 420px;

      &::after {
        @include ps;
        @include b(200px, 200px);
        border-radius: 100%;
        top: -20px;
        right: -20px;
        border: 20px solid transparent;
        border-bottom: 20px solid currentcolor;
        z-index: 2;
      }
    }
  }
}

.baumannzone {
  position: fixed;
  top: 0;
  right: 0;
  background: white;
  padding: 6px 15px;
  text-align: center;
  border: 2px solid #eee;
  border-top: none;
  border-right: none;
  font-family: monospace;
  font-size: 17px;
}
.baumannzone .top-line {
  height: 5px;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: rgb(63, 94, 251);
  background: linear-gradient(
    0deg,
    rgba(63, 94, 251, 1) 0%,
    rgba(252, 70, 220, 1) 99%
  );
}
.baumannzone span:nth-child(2) {
  font-weight: bold;
}
.baumannzone .social-links {
  margin-top: 4px;
}
.baumannzone .social-links svg {
  width: 25px;
  margin-right: 5px;
}
.baumannzone .social-links a {
  text-decoration: none;
}

@keyframes animation1 {
  from {
    transform: scale3d(1, 1, 1);
  }

  30% {
    transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    transform: scale3d(.95, 1.05, 1);
  }

  75% {
    transform: scale3d(1.05, .95, 1);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes animation2 {
  from {
    opacity: 0;
    transform: scale3d(.1, .1, .1) translate3d(1000px, 0, 0);
    animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
  }

  60% {
    opacity: 1;
    transform: scale3d(.475, .475, .475) translate3d(-210px, 0, 0);
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
  }
}

@keyframes brillito {
  0%, 90% {
    filter: brightness(0);
  }
  100% {
    filter: brightness(1);
  }
}
              
            
!

JS

              
                // https://es.wikipedia.org/wiki/Anillos_ol%C3%ADmpicos#/media/Archivo:Olympic_rings_without_rims.svg
              
            
!
999px

Console