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.

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

            
              .player
  .head
    .back
    .front
      .avatar
        img(src="http://vignette4.wikia.nocookie.net/lyricwiki/images/1/15/Semisonic_portrait.jpg/revision/latest?cb=20090409134209")
      .infos
        .titulo_song
          | KFC - Killing Fabulous Chickens
        .duracao_song
           i.fa.fa-clock-o 
             | Total time 45:12
        .tags
          span Educativo
          span Galinhas
          span Podcast
  
  .timeline
    
    .soundline
    .controllers.active
      .back 
         
      .play
         
      .forward

.rotation
  
      
  
            
          
!
            
              @import 'https://fonts.googleapis.com/css?family=Open+Sans:300,400'; 
%reset { margin: 0; padding: 0; }
%flex { display: flex; justify-content: center;	align-items: center; }

@mixin dimensions($width: null, $height: null) { width: $width; min-height: $height; }

    html{height: 100%;}
    body{
      
      @extend %flex;
       font-family: 'Open Sans', sans-serif;
      width: 100%;
      min-height: 100%;
      background:linear-gradient(141deg, #0C5B5F 0%, rgba(0, 212, 153, 0.77) 75%);
    }
 

    *, *:before, *:after {
      box-sizing: border-box;
    }

.rotation{
  
    display: block;
    width: 300px;
    height: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -150px -150px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.3;
    z-index: -1;
  animation: 2s girandomt infinite forwards linear;
}
.player{
   
  border-radius: 6px;
  background-color: white;
 @include dimensions( 500px,  200px);
  box-shadow: 0px 5px 20px 2px rgba(0,0,0,0.2);
  overflow: hidden;
  .head{
     padding: 15px;
     color: white;
     text-shadow: 0px 0px 2px rgba(0,0,0,0.3);
     height: auto;
     width: 100%;
     position: relative;
    overflow: hidden;
    .front{
      position:relative;
      height: 100%;
      @extend %flex;
      justify-content: space-around;
      
    }
    .back{
       height: 110%;
       width: 110%;
       top: -10px; left:-10px;
       position: absolute;
       background-position: center;
       background-size: cover;
       background-image: url('https://images.unsplash.com/photo-1471623817296-aa07ae5c9f47');
       -webkit-filter: blur(5px);
        filter: blur(5px);
    }
   .avatar{
    width: 90px;
    height: 90px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.3);
    img{
      width: 100%;
      height: 100%;
      
    }
  }
  .infos{
      @extend %flex;
       justify-content: space-around;
      flex-direction: column;
      height: inherit;
    align-items: baseline;
  }
  
   .tags span {
    border-radius: 3px;
    padding: 2px 11px;
    margin: 1px 2px;
    background-color: #15A58B;
    font-weight: bold;
     
      }
  
  .titulo_song {
    font-size: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.75);
}
  .duracao_song {
    font-size: 12px;
    color: white;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.75);
}
  
  
  }
 
  .timeline {
    height: auto;
    width: 100%;
    
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    .volume{
      @extend %flex;
      flex-direction: row;
    }
    .controllers{
      @extend %flex;
   
       &.active .play{
        box-shadow: 0px 0px 10px 2px rgba(30, 177, 150, 0.1);
        animation: 3s pulseshadowplay infinite both;
      }
      
      
      .back,.play,.forward{
        font-size: 16px;
        margin: 10px;
        color: #4A4A4A; 
        width: 40px;
        height: 40px;
        border-radius: 50%; 
    border: 1px solid transparent;
        @extend %flex;
      }
      .play{ transition: all 0.3s ease-in-out;
        
        &:hover{
        box-shadow: 0px 0px 10px 2px rgba(30, 177, 150, 0.38);
    border: 2px solid rgba(143, 208, 196, 0.54) !important;          
        }
      }
     
      .back::after{
         content:'\f04a';
        font-family: 'FontAwesome'; 
        margin-right: 5px;
      }  
      .play::after{
        content:'\f04b';
        font-family: 'FontAwesome'; 
        margin-left: 5px;
      }
      .forward::after{
         content:'\f04e';
        font-family: 'FontAwesome';
    margin-left: 5px;
      }
      
    }
    .soundline{
      width: 100%;
      height: 6px;
      position: relative; 
    background: #F3F3F3;
    border-radius: 2px;
    overflow: hidden;
      &::after{
        display:block;
        position: absolute;
        content:'';
        top:0;
        left:0;
        width: 0%;
    height: 100%;
    background: #6CE59C;
    box-shadow: 0px 0px 9px #94FFBF;
    transition: all 0.4s cubic-bezier(0.07, 0.82, 0.11, 1.02);
    animation: 20s soundline infinite both linear;
      }
    }
  }
  
}

@keyframes pulseshadowplay{
  0%{box-shadow: 0px 0px 10px 2px rgba(30, 177, 150, 0.1);}
  50%{box-shadow: 0px 0px 50px 2px rgba(30, 177, 150, 0.38);}
}

@keyframes soundline{
  0%{width: 0%;}
  100%{width: 100%;}
}


@keyframes girandomt{
  0%{ box-shadow: 0px 0px 00px 00px rgba(255,255,255,0.8);
  }
  100%{box-shadow: 0px 0px 30px 40px rgba(255,255,255,0.0);
   }
}
            
          
!
999px
🕑 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 ..................

Console