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

Quick-add: + add another resource

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.

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.

            
              <head>
  <link href="https://fonts.googleapis.com/css?family=Parisienne" rel="stylesheet">
</head>

<body>
  <div class="container">
    <div class="circle">
      <div class="bread crust">
        <div class="top-bread"></div>
        <div class="bottom-bread"></div>
        <div class="bread crumb">
          <div class="top-bread"></div>
          <div class="bottom-bread"></div>
          <div class="spread">
            <div class="pb">
            </div>
            <div class="jam">
            </div>
          </div>
        </div>
      </div>

    </div>
    <div class="wait">
      <h2>Just a sec...</h2></div>
  </div>
</body>
            
          
!
            
              $animation: 6s infinite;
$pb: #8f2909;
$pb2: #772208;
$jam: #ad1457;
$jam2: #880e4f;
$crust: #e65100;
$crust2: #c94700;
$crumb: #ffd790;
$crumb2: #ffd180;
$background: #90caf9;
$background2: #64b5f6;

body,
html {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 80vmin;
  width: 80vmin;
}

.circle {
  background: linear-gradient(90deg, $background 50%, $background2 50%);
  width: 70%;
  height: 70%;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wait {
  font-family: "Parisienne", cursive;
}

.bread {
  position: relative;
}

.top-bread {
  width: 100%;
  border-radius: 50%;
  top: 0;
  left: 0;
  position: absolute;
}

.bottom-bread {
  width: 80%;
  height: 80%;
  top: 20%;
  left: 10%;
  position: absolute;
  border-radius: 0 0 5% 5%;
}

.crust {
  width: 70%;
  height: 70%;

  .top-bread, .bottom-bread {
    background: linear-gradient(90deg, $crust 50%, $crust2 50%);
  }
  .top-bread {
    height: 40%;
  }
}

.crumb {
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
  .top-bread, .bottom-bread {
    background: linear-gradient(90deg, $crumb 50%, $crumb2 50%);
  }
  .top-bread {
    height: 40%*0.9;
  }
}

.spread {
  top: 30%;
  left: 20%;
  width: 60%;
  height: 60%;
  position: absolute;
  overflow: hidden;
  border-radius: 10%;
}

.pb {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, $pb 50%, $pb2 50%);
  position: absolute;
  top: 0;
  left: 0;
  animation: spread-up $animation;
}

.jam {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, $jam 50%, $jam2 50%);
  position: absolute;
  top: 0;
  left: 0;
  animation: spread-down $animation;
}

@keyframes spread-up {
  0% {
    top: 0;
    left: -100%;
    z-index: 4;
  }
  25%, 50% {
    top: 0;
    left: 0;
    z-index: 4;
  }
  51% {
    z-index: 3;
  }
  75% {
    top: 0;
    left: 0;
  }
  100% {
    top: 0;
    left: -100%;
  }
}
@keyframes spread-down {
  0%, 25% {
    top: 0%;
    left: 0%;
    z-index: 3;
  }
  50% {
    top: 0;
    left: 100%;
    z-index: 3;
  }
  51% {
    z-index: 4;
  }
  75%, 100% {
    top: 0;
    left: 0;
    z-index: 4;
  }
}

@media (max-width: 170px) {
  .circle {
    display: none;
  }
}

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

Console