cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              <div class="light-wrapper">
  <div class="light-wrapper-content">
    <h2 class="light-wrapper__title">Fire Light Hope</h2>
    <div class="light-wrapper__circle">
      <div class="light-wrapper__circle-line line-1"></div>
      <div class="light-wrapper__circle-line line-2"></div>
      <div class="light-wrapper__circle-line line-3"></div>
      <div class="light-wrapper__circle-line line-4"></div>
      <div class="light-wrapper__circle-line line-5"></div>
      <div class="light-wrapper__circle-star star-1"></div>
      <div class="light-wrapper__circle-star star-2 bright"></div>
      <div class="light-wrapper__circle-star star-3"></div>
      <div class="light-wrapper__circle-star star-4 light"></div>
      <div class="light-wrapper__circle-light-wrap">
        <div class='fire'>
          <div class='flame'></div>
          <div class='flame'></div>
          <div class='flame'></div>
          <div class='flame'></div>
          <div class='spark'></div>
          <div class='spark'></div>
          <div class='spark'></div>
          <div class='spark'></div>
          <div class='spark'></div>
          <div class='spark'></div>
        </div>
      </div>
      <div class="light-wrapper__cloud-left"></div>
      <div class="light-wrapper__cloud-right"></div>
    </div>
    <div class="light-wrapper__base"></div>
    <div class="light-wrapper__bottom-line"></div>
  </div>
</div>
            
          
!
            
              @import 'https://fonts.googleapis.com/css?family=Bungee+Shade';

$bg-color: #333;
$title-color: #ffd053;

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: $bg-color;
  font-family: 'Bungee Shade', cursive;
}

.light-wrapper {
  position: relative;
  height: 100%;
}

.light-wrapper__title{
  color: $title-color;
  text-align: center;
  font-size: 40px;
  line-height: 48px;
  margin: 0;
}

.light-wrapper-content {
  position: absolute;
  transform: translateY(-50%);
  top: 50%;
  left: 0;
  right: 0;
  width: 600px;
  height: 400px;
  margin: auto;
  text-align: center;
}

.light-wrapper__circle {
  display: inline-block;
  width: 200px;
  height: 200px;
  background: rgba(95, 95, 95, 0.3);
  border-radius: 50%;
  margin-top: 30px;
  position: relative;
  &:before,
  &:after {
    content: '';
    position: absolute;
    width: 150px;
    height: 30px;
    background: #505050;
    border-radius: 30px;
    top: 40%;
  }
  &:before {
    left: -100px;
    animation: animate-cloud 10s cubic-bezier(0, 0, 0.3, 1) infinite;
  }
  &:after {
    right: -100px;
    top: 50%;
    animation: animate-cloud-right 10s cubic-bezier(0, 0, 0.3, 1) infinite;
  }
}

.light-wrapper__circle-line {
  width: 4px;
  height: 50px;
  background: #fff;
  position: absolute;
  display: inline-block;
  border-radius: 30px;
  margin-top: 20px;
  left: 37%;
  top: 35%;
  &:before {
    content: '';
    background: #fff;
    width: 4px;
    height: 13px;
    display: inline-block;
    position: absolute;
    border-radius: 30px;
    top: -20px;
    left: 0;
  }
  &.line-2 {
    left: 43%;
    top: 18%;
    &:before {
      display: none;
    }
  }
  &.line-3 {
    left: 49%;
    top: 13%;
    height: 20px;
    &:before {
      height: 10px;
      top: -15px;
    }
  }
  &.line-4 {
    right: 43%;
    top: 35%;
    left: auto;
    height: 30px;
    &:before {
      top: -30px;
      height: 25px;
    }
  }
  &.line-5 {
    right: 37%;
    left: auto;
    top: 35%;
    &:before {
      display: none;
    }
  }
}

.light-wrapper__circle-star {
  width: 0;
  height: 0;
  position: absolute;
  border: 5px solid transparent;
  border-top: 0 solid;
  border-bottom: 20px solid rgba(255, 255, 255, 0.2);
  top: 50%;
  left: 27%;
  &:after {
    width: 0;
    height: 0;
    position: absolute;
    content: "";
    top: 7px;
    left: -6px;
    border: 6px solid transparent;
    border-top: 20px solid rgba(255, 255, 255, 0.2);
    border-bottom: 0 solid;
  }
  &.star-2 {
    border-bottom: 20px solid rgba(255, 255, 255, 0.6);
    left: 47.5%;
    top: 39%;
    &:after {
      border-top: 20px solid rgba(255, 255, 255, 0.6);
    }
  }
  &.star-3 {
    left: auto;
    right: 35%;
    top: 29%;
  }
  &.star-4 {
    left: auto;
    right: 30%;
    top: 60%;
  }
}

.light-wrapper__circle-light-wrap {
  bottom: 3%;
  left: 40%;
  display: block;
  position: absolute;
}

.fire {
  position: relative;
  width: 40px;
  height: 40px;
}

.flame {
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: .9;
  width: 100%;
  height: 100%;
  border-bottom-right-radius: 70%;
  border-bottom-left-radius: 70%;
  border-top-left-radius: 70%;
  transform: rotate(-45deg) skew(-10deg, -10deg);
  background-color: #ff2200;
  background-image: linear-gradient(to bottom left, rgba(255, 34, 0, 0.9), rgba(255, 106, 0, 0.7));
  z-index: 1;
  animation: burn-left 300ms forwards infinite;
  &:nth-of-type(2) {
    height: 80%;
    width: 80%;
    left: 10%;
    background-color: #ff6a00;
    background-image: linear-gradient(to bottom left, rgba(255, 106, 0, 0.1), rgba(255, 200, 0, 0.1));
    z-index: 2;
  }
  &:nth-of-type(3) {
    height: 50%;
    width: 50%;
    left: 25%;
    background-image: linear-gradient(to bottom left, #ffc800, #ffffff);
    z-index: 3;
    animation: burn-right 300ms forwards infinite;
  }
  &:nth-of-type(4) {
    height: 30%;
    width: 30%;
    left: 35%;
    background-color: white;
    background-image: linear-gradient(to bottom left, rgba(255, 255, 255, 0.3), rgba(0, 55, 255, 0.9));
    opacity: 1;
    z-index: 4;
    animation: burn-right 300ms forwards infinite;
  }
}

.spark {
  position: absolute;
  bottom: 46%;
  left: 15%;
  width: 3px;
  height: 3px;
  background-color: rgba(255, 106, 0, 0.4);
  animation: fly-up-burnout-1 6s linear infinite .4s;
  &:nth-of-type(5) {
    animation-name: fly-up-burnout-2;
    animation-duration: 8.4s;
    animation-delay: 1s;
  }
  &:nth-of-type(6) {
    animation-delay: 1.9s;
    animation-duration: 8s;
    left: 55%;
  }
  &:nth-of-type(7) {
    animation-delay: 2.6s;
    animation-duration: 7s;
    left: 88%;
    animation-name: fly-up-burnout-2;
    animation-duration: 3s;
    animation-delay: .2s;
  }
  &:nth-of-type(8) {
    animation-delay: 1.4s;
    animation-duration: 7s;
    left: 22%;
  }
  &:nth-of-type(9) {
    animation-delay: 3.2s;
    left: 61%;
  }
  &:nth-of-type(10) {
    animation-delay: .8s;
    animation-duration: 5s;
    left: 64%;
    animation-name: fly-up-burnout-2;
    animation-duration: 6.4s;
    animation-delay: .5s;
  }
}

.light-wrapper__base {
  width: 222px;
  height: 118px;
  display: block;
  clear: both;
  text-align: center;
  margin: auto;
  margin-top: -30px;
  position: relative;
  -moz-border-radius: 500px/500px 500px 0 0;
  -webkit-border-radius: 500px/500px 500px 0 0;
  border-radius: 500px/500px 500px 0 0;
  border: solid 8px #fff;
  transform: rotate(-180deg);
  border-color: #fff transparent transparent transparent;
  &:before,
  &:after {
    content: "";
    position: absolute;
    width: 104px;
    height: 70px;
    border-radius: 50%;
    border-bottom: 10px solid #fff;
    top: 65px;
    transform: rotate(-180deg);
  }
  &:before {
    left: 0;
  }
  &:after {
    right: 0;
  }
}

.light-wrapper__cloud-left,
.light-wrapper__cloud-right {
  position: absolute;
  width: 80px;
  height: 15px;
  background: #505050;
  border-radius: 30px;
  top: 30%;
  left: -25px;
  &:after {
    content: '';
    width: 15px;
    height: 15px;
    background: #505050;
    display: block;
    position: relative;
    top: 15px;
    left: 40px;
  }
}

.light-wrapper__cloud-right {
  left: auto;
  right: -120px;
  top: 68%;
  width: 120px;
  animation: animate-cloud-right 10s cubic-bezier(0, 0, 0.3, 1) infinite;
  &:before {
    content: '';
    width: 45px;
    height: 6px;
    background: #505050;
    display: block;
    position: relative;
    top: 19px;
    border-radius: 30px;
    right: -35px;
  }
  &:after {
    top: -13px;
    left: auto;
    right: -15px;
  }
}

.light-wrapper__cloud-left {
  animation: animate-cloud 10s cubic-bezier(0, 0, 0.3, 1) infinite;
}

.light-wrapper__bottom-line {
  position: relative;
  max-width: 85%;
  margin: 0 auto;
  height: 4px;
  background: #fff;
  border-radius: 30px;
  margin-top: 2px;
  position: relative;
  &:before,&:after{
    content: '';
    width: 20px;
    height: 4px;
    background: #fff;
    border-radius: 30px;
    display: block;
    position: absolute;
  }
  &:before{
    left: -30px;
  }
  &:after{
    width: 15px;
    right: -20px;
  }
}

@keyframes animate-cloud {
  10% {
    transform: translateX(5%);
  }
  20% {
    transform: translateX(-5%);
  }
  50% {
    transform: translateX(5%);
  }
  80% {
    transform: translateX(-5%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes animate-cloud-right {
  0% {
    transform: translateX(2%);
  }
  20% {
    transform: translateX(20%);
  }
  50% {
    transform: translateX(25%);
  }
  80% {
    transform: translateX(-5%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes burn-left {
  0%,
  100% {
    transform: rotate(-45deg) skew(-10deg, -10deg) scale(1);
  }
  30%,
  60% {
    transform: rotate(-44deg) skew(-12deg, -12deg) scale(1.01);
  }
}

@keyframes burn-right {
  0%,
  100% {
    transform: rotate(-45deg) skew(-10deg, -10deg) scale(1);
  }
  30%,
  60% {
    transform: rotate(-46deg) skew(-6deg, -6deg) scale(1.01);
  }
}

@keyframes fly-up-burnout-1 {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  33% {
    transform: translate(12px, -70px);
  }
  66% {
    transform: translate(0, -140px);
    opacity: .6;
  }
  100% {
    transform: translate(6px, -200px);
    opacity: 0;
  }
}

@keyframes fly-up-burnout-2 {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  50% {
    transform: translate(-10px, -80px);
  }
  80% {
    transform: translate(-4px, -140px);
    opacity: .6;
  }
  100% {
    transform: translate(-6px, -160px);
    opacity: 0;
  }
}
            
          
!
            
              //Inspired by Anjhero
//https://dribbble.com/shots/2347999-Happy-Tihar
//Anjhero https://dribbble.com/anjhero


            
          
!
999px
Loading ..................

Console