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