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.

            
              div, div::before, div::after {
  position: relative;
  box-sizing: border-box;
}

div {
  
  --height: 40vmin;
  --bellow-width: 50vmin;
  
  --note-color1: rgba(255, 255, 255, .1);
  --note-color2: rgba(255, 255, 255, .2);
  --note-color3: rgba(255, 255, 255, .05);
  --note-x1: -10vmin;
  --note-x2: -16vmin;
  --note-x3: -8vmin;
  
  --notes-full-1: var(--note-x1) 5vmin 0vmin var(--note-color1),
    var(--note-x2) 25vmin 0vmin var(--note-color2),
    var(--note-x3) 37.5vmin 0vmin var(--note-color3);
  --notes-full-2: -8vmin 5vmin 0vmin rgba(255, 255, 255, .4),
      -10vmin 25vmin 0vmin rgba(255, 255, 255, .02),
      -14vmin 37.5vmin 0vmin rgba(255, 255, 255, .24);
  --notes-full-3: -12vmin 5vmin 0vmin rgba(255, 255, 255, .1),
      -8vmin 25vmin 0vmin rgba(255, 255, 255, .2),
      -16vmin 37.5vmin 0vmin rgba(255, 255, 255, .4);
  --notes-full-4: -16vmin 5vmin 0vmin rgba(255, 255, 255, .2),
      -13vmin 25vmin 0vmin rgba(255, 255, 255, .3),
      -9vmin 37.5vmin 0vmin rgba(255, 255, 255, .1);
}

/*musical notes*/
div {
  width: var(--bellow-width);
  height: calc(var(--height) + 5vmin);
  
  color: rgba(0,0,0,0);
  font-size: 4vmin;
    
  text-shadow: var(--notes-full-1);

  will-change: text-shadow;
  animation: note-float 2000ms infinite alternate ease-in-out;
}


@keyframes note-float {
  30% {
    text-shadow: var(--notes-full-2);
  }
  60% {
    text-shadow: var(--notes-full-3);
  }
  100% {
    text-shadow: var(--notes-full-4);
  }
}










body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  background: hsl(33, 80%, 9%);
}

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

Console