Pen Settings

HTML

CSS

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

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                
<div class="container">
    <nav class="navbar bg-white navbar-light">
      <a class="navbar-brand" href="#"><i class="material-icons">chevron_left</i></a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
      <span class="navbar-toggler-icon"></span>
    </button>
      <div class="collapse navbar-collapse" id="collapsibleNavbar">

        <ul class="navbar-nav ml-auto">
          <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown"></a>

          </li>
        </ul>
      </div>
    </nav>
  <div id="info">
    <div class="big_album">
      <div class="album"></div>
    </div>
  </div>
  <div class="name">
      <h4>We Are</h4>
      <h6>one ok rock</h6>
  </div>

    
  <div class="tools">
        <a href="#"><i class="fas fa-random radom"></i></a>
        <a href="#"><i class="fas fa-step-backward last"></i></a>
        <a class="playbtn"href="#"><i class="material-icons play">play_circle_filled</i></a>
        <a href="#"><i class="fas fa-step-forward next"></i></a>
        <a href="#"><i class="material-icons cycle">repeat</i></a>
  </div>
    
  
  <div class="volumn">
      <a class="small" href="#"><i class="fas fa-volume-off"></i></a>
      <input type="range" value="50">
      <a class="loud" href="#"><i class="fas fa-volume-up"></i></a>
  </div>

        
</div>


              
            
!

CSS

              
                
.container
  margin-top: 50px
  height: 750px
  width: 450px
  border: 1px solid #eee
  padding-top: 20px
  padding-left: 50px
  .navbar-toggler
    border: none
  .material-icons
    font-size: 40px
    margin-left: -20px
  .navbar-toggler
    margin-top: -20px
#info
  width: 350px
  height: 350px
  margin: 0
  position: relative 
  // border: 1px solid
  border-radius: 100%
  background-color: #eee
  .big_album
    width: 280px
    height: 280px
    margin: 35px
    position: absolute 
    // border: 1px solid
    border-radius: 100% 
    background-image: url(https://3.bp.blogspot.com/-5z4fAWsT5Dc/WLOXlnaWoQI/AAAAAAAAGoY/C-ReoYabqoUPbrNp6KEs6G3s6qt5fm8AgCLcB/s1600/one-ok-rock-ambitions.jpg)
    background-size: contain
  
.name
  margin: 0 auto
  margin-top: 30px
  margin-left: -20px
  position: relative 
  text-align: center
  letter-spacing: 1px
  h6
    text-transform: uppercase
    color: gray
    letter-spacing: 0px
  
.tools
  justify-content: space-around
  display: flex
  flex-direction: row
  flex-wrap: wrap
  margin-right: 30px
  margin-top: 30px    
  .radom, .cycle
      font-size: 25px
      color: rgba(136, 137, 140, .3)
  .radom
    margin-right: -10px
  .last, .next
      font-size: 25px
      color: #000      
  a
    margin-top: 35px
      
  .play
      font-size: 80px
      color: #000
  .playbtn
      margin: 8px -20px 0 -5px


.volumn
  display: flex
  justify-content: space-around
  margin: 10px 90px
  align-items: center
  position: relative
  left: -7px
  top: 10px
  i
    font-size: 20px
    color: gray
  
  
      

  input[type="range"]
    -webkit-appearance: none
    overflow: hidden   
    width: 150px
    height: 13px
    outline: none    
    background-color: #fff

  input[type="range"]::-webkit-slider-runnable-track
    -webkit-appearance: none
    color: gray
    height: 5px
    border-radius: 4px
    background-color: #eee

  input[type="range"]::-webkit-slider-thumb
    -webkit-appearance: none
    width: 15px
    height: 15px
    margin-top: -5px
    background: #fff
    border: 2px solid gray
    border-radius: 50%
    box-shadow: -80px 39px 0 80px gray 
   


  

  
  
      
    
  
    
    
  
              
            
!

JS

              
                $('input[type="range"]').rangeslider({

    // Feature detection the default is `true`.
    // Set this to `false` if you want to use
    // the polyfill also in Browsers which support
    // the native <input type="range"> element.
    polyfill: true,

    // Default CSS classes
    rangeClass: 'rangeslider',
    disabledClass: 'rangeslider--disabled',
    horizontalClass: 'rangeslider--horizontal',
    verticalClass: 'rangeslider--vertical',
    fillClass: 'rangeslider__fill',
    handleClass: 'rangeslider__handle',

    // Callback function
    onInit: function() {},

    // Callback function
    onSlide: function(position, value) {},

    // Callback function
    onSlideEnd: function(position, value) {}
});
              
            
!
999px

Console