css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

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.

              <div class="frame">
  <h1>Hover Me</h1>
  <div class="circle"> 
  <div class="border_1">
      <div class="border_2">
        <div class="whole">                   </div>
      <div class="pyramid">
        <svg viewBox="0 0 470 335" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="1.5">
  <g transform="translate(-86.149 -12.809) scale(.46825)">
    <linearGradient id="grad2" x1="0%" y1="0%" x2="0%" y2="100%">
      <stop offset="0%" style="stop-color:rgb(227,164,122);stop-opacity:1" />
      <stop offset="100%" style="stop-color:rgb(200,131,0);stop-opacity:1" />
          <linearGradient id="moon" x1="0%" y1="0%" x2="0%" y2="100%">
      <stop offset="0%" style="stop-color:rgb( 	75.3, 75.3, 75.3); stop-opacity:1" />
      <stop offset="100%" style="stop-color:rgb(255,255,255); stop-opacity:1" />
           <linearGradient id="grad1" x1="0%" y1="0%" x2="0%" y2="100%">
      <stop offset="0%" style="stop-color:rgb(227,164,122);stop-opacity:1" />
      <stop offset="100%" style="stop-color:rgb(200,131,0);stop-opacity:1" />
    <path fill="url(#grad1)" d="M845.435 490.849h137.351V652.4H845.435z"/>
    <path fill="url(#grad1)" fill-opacity=".929" d="M659.307 481.804h137.351v161.551H659.307z"/>
    <path fill="#d8a272" d="M777.9 529.835h70.311v123.902H777.9z"/>
    <path fill="#764921" fill-opacity=".722" stroke="#7c4c26" stroke-width="2.14" d="M799.733 556.088h35.832v94.236h-35.832z"/>
    <path fill="#8b5b32" fill-opacity=".722" d="M794.573 643.103l44.412 9.061L822.1 734.93l-44.412-9.062z"/>
    <path d="M770.926 27.357l372.626 436.994H398.295L770.926 27.357z"  fill="url(#grad2)"/>
    <path d="M674.287 144.017c12.779 0 27.644-.615 39.414-.615m-113.098 87.201c7.049 0 59.403-.682 68.436-1.509M538.98 298.626c17.614 0 37.691-.777 55.118-.264 53.537 1.576 100.479 2.25 147.421 2.25M466 388.253c19.177 0 39.955-.608 59.261-1.472 28.22-1.262 53.306-.197 80.429-1.151 54.356-1.914 107.551-1.786 164.626-2.371 29.915-.307 65.306.552 94.841.552m-160.453 52.087c19.177 0 39.955-.608 59.261-1.472 28.22-1.262 53.306-.197 80.429-1.151 54.356-1.914 107.551-1.786 164.626-2.371 29.915-.307 65.306.552 94.841.552M881.977 163.207c-16.157 0-33.514.816-50.092.816-5.347 0-10.43.391-15.799.391-3.004 0-12.004-.454-9-.454m146.19 81.753c-38.026 0-77.189-.466-115.845-.466m-1.04 67.391c31.39 0 66.264 1.586 97.758 1.586M738.305 67.063c5.158 0 15.939-.131 22.231-.131m26.682-20.409c-5.998 0-13.439.747-17.775.747" fill="none" stroke="#a45416" stroke-width="2.14"/>
    <ellipse cx="525.822" cy="139.299" rx="43.236" ry="42.563" fill="url(#moon)"/>
    <ellipse cx="293.497" cy="344.106" rx="103.509" ry="91.905" fill="url(#moon)" transform="translate(-6.006 -10.626)"/>
    <ellipse cx="1153.56" cy="340.063" rx="53.675" ry="50.121" fill="url(#moon)" transform="translate(-19.833 -.253)"/>
    <path fill="#d8a272" d="M777.683 634.1l22.371 4.275-17.107 89.525-22.372-4.275zm55.805 13.05l22.408 4.078-16.32 89.672-22.408-4.079z"/>

              $sky: #74aec0;
$border: #4d7f8f;
$dark-blue: #424971;
$light-blue: #ebf3fe;
$spiral_light: #b7edf2;
$spiral_dark: #a9dee6;

@function tint($color, $percentage) {
  @return mix(white, $color, $percentage);

html {
  font-size: 62.5%;

body {
  background: #302D2D;
  font-family: Inconsolata;

.frame {
  position: relative;
  margin: 0 auto;
  display: block;
  width: 50rem;
  height: 80rem;
  overflow: hidden;

.border_1 {
  width: 26rem;
  height: 26rem;
  border: 10px solid $dark-blue;
  border-radius: 50%;
  position: absolute;
  left: 20%;
  background: $light-blue;

.border_2 {
  width: 21.5rem;
  height: 21.5rem;
  background: $sky;
  border: 10px solid $dark-blue;
  border-radius: 50%;
  margin: 0.5rem;
  left: 3%;
  position: absolute;
  top: 2%;

.whole {
  width: 20.6rem;
  height: 20.6rem;
  background: radial-gradient(
    rgba($spiral_dark, 0.75),
    tint($spiral_dark, 50%),
    rgba($spiral_light, 0.5)
  border: 2px solid $border;
  border-radius: 50%;
  margin: 0.2rem;
  box-shadow: inset 1px 1px 13px 3px $spiral_dark;
  opacity: 0;
  animation: radiate .5s cubic-bezier(0.17, 0.67, 0.9, 0.2) infinite;

svg {
  position: absolute;
  top: 20%;
  transform: scale(0.9);
  opacity: 0;
  transition: opacity .5s ease-in;
svg:hover {
  opacity: 1;

@keyframes radiate {
  10% {
    opacity: 0.1;
  20% {
    opacity: 0.3;
  40% {
    opacity: 0.5;
  50% {
    opacity: 0.7;
  70% {
    opacity: 0.9;
  90% {
    opacity: 1;

@media all and (max-width: 480px) { 
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................