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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

            
              
<div class="wrapper">
  <div class="flame-wrapper">
    <div class="flame red"></div>
    <div class="flame orange"></div>
    <div class="flame gold"></div>
    <div class="flame white"></div>
  </div>
  <div class="log log-left"></div>
  <div class="log log-right"></div>
  <div class="spark spark1"></div>
  <div class="spark spark2"></div>
  <div class="spark spark3"></div>
  <div class="spark spark4"></div>
  <div class="spark spark5"></div>
</div>

            
          
!

CSS

            
              body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #1b1e23;
}

.wrapper {
  width: auto;
  height: auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 120px;
}
.wrapper::after {
  content: "";
  position: absolute;
  right: -235px;
  top: -350px;
  width: 400px;
  height: 500px;
  background-color: orange;
  filter: blur(50px);
  border-radius: 50%;
  z-index: -50;
  animation: flicker-background 600ms ease-in infinite;
  opacity: 0.9;
}
@keyframes flicker-background {
  50% {
    transform: scale(0.98);
  }
}

.spark {
  position: absolute;
  height: 4px;
  width: 4px;
  border-radius: 1px;
  bottom: 0;
  left: 0;
  filter: blur(1px);
  background: yellow;
  z-index: -1;
}
/* Random animation timers */
.spark1 {
  animation: flicker-spark1 1500ms ease-out infinite;
}
.spark2 {
  animation: flicker-spark2 1000ms ease-out infinite;
}
.spark3 {
  animation: flicker-spark3 2000ms ease-out infinite;
}
.spark4 {
  animation: flicker-spark4 1300ms ease-out infinite;
}
.spark5 {
  animation: flicker-spark5 1800ms ease-out infinite;
}

@keyframes flicker-spark1 {
  0% {
    opacity: 1;
    bottom: 50px;
  }
  100% {
    opacity: 0;
    bottom: 350px;
    left: 50px;
  }
}
@keyframes flicker-spark2 {
  0% {
    opacity: 1;
    bottom: 50px;
    left: 50px;
  }
  100% {
    opacity: 0;
    bottom: 350px;
    left: 100px;
  }
}
@keyframes flicker-spark3 {
  0% {
    opacity: 1;
    bottom: 50px;
    left: 50px;
  }
  100% {
    opacity: 0;
    bottom: 350px;
    left: -50px;
  }
}
@keyframes flicker-spark4 {
  0% {
    opacity: 1;
    bottom: 50px;
    left: 0px;
  }
  100% {
    opacity: 0;
    bottom: 350px;
    left: -50px;
  }
}
@keyframes flicker-spark5 {
  0% {
    opacity: 1;
    bottom: 50px;
    left: -10px;
  }
  100% {
    opacity: 0;
    bottom: 350px;
    left: 70px;
  }
}

.red {
  width: 80px;
  height: 80px;
  background: orangered;
  box-shadow: 0px 0px 10px 5px orangered;
}
.orange {
  left: 10px;
  width: 60px;
  height: 60px;
  background: orange;
  box-shadow: 0px 0px 12px 6px orangered;
}
.gold {
  left: 18px;
  width: 45px;
  height: 45px;
  background: gold;
  box-shadow: 0px 0px 9px 4px orangered;
}
.white {
  left: 22px;
  width: 35px;
  height: 35px;
  background: lightyellow;
  box-shadow: 0px 0px 9px 4px lightyellow;
}

.flame-wrapper {
  position: relative;
  animation: flicker 600ms ease-in infinite;
}
.flame {
  bottom: 0;
  position: absolute;
  border-radius: 50% 0% 50% 50%;
  transform: rotate(-45deg);
}

@keyframes flicker {
  0% {
    transform: rotate(-1deg);
  }
  20% {
    transform: rotate(2deg) scaleY(1.2);
  }
  40% {
    transform: rotate(-1deg);
  }
  60% {
    transform: rotate(1deg);
  }
  80% {
    transform: rotate(-1deg) scaleY(0.9);
  }
  100% {
    transform: rotate(1deg);
  }
}

.log {
  width: 20px;
  height: 80px;
  filter: blur(1px);
  background: linear-gradient(#e66465, #5d5e55);
  position: absolute;
  z-index: -5;
  top: -20px;
  left: 30px;
}
.log-left {
  transform: rotate(60deg);
}
.log-right {
  transform: rotate(-60deg);
}
            
          
!

JS

            
              
            
          
!
999px

Console