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


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


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.


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.


  <h1>Google I/O Tabbed Nav</h1>
    <ul class="papertabs">
        <a href="#" class="active">
          Item 1
          <span class="paperripple">
            <span class="circle"</span>
        <a href="#">
          Item 2
          <span class="paperripple">
            <span class="circle"</span>
        <a href="#">
          Item 3
          <span class="paperripple">
            <span class="circle"</span>
        <a href="#">
          Longer Item
          <span class="paperripple">
            <span class="circle"</span>


                // Imports
@import "compass"
@import url(,500)

// Variables
$brand: #00BCD4
$text: rgb(0, 68, 70)

// Global Styles

  box-sizing: border-box

  background: $brand
  font: 14px/1 'Roboto', sans-serif
  color: $text
  padding-top: 90px
  font-size: 42px
  font-weight: 300
  text-align: center

// Paper Tabs

  margin: 0 auto
  display: table
  margin: 0
  padding: 0
  list-style: none
  position: relative
    float: left
    color: inherit
    text-decoration: none
    text-transform: uppercase
    font-weight: 500
    letter-spacing: 0.02em
    padding: 16px 12px
    line-height: 1
    float: left
    position: relative
      .paperripple .circle
        +animation(ripple 0.25s ease-in) 
        background: rgba(255,255,255,0.25)
        transition: none   
  background: #fff
  position: absolute
  height: 2px
  bottom: 0

// Ripple Animation
  position: absolute
  width: 100%
  height: 100%
  top: 0
  left: 0
  overflow: hidden
  background: rgba(255,255,255,0)
  +transition(0.4s ease-in)
    position: absolute
    width: 0
    height: 0
    top: 50%
    left: 50%
    background: rgba(255,255,255,0)
    +translate(-50%, -50%)

    background: rgba(255,255,255,0)
    background: rgba(255,255,255,0.55)
    width: 15%
    padding-bottom: 15%
    background: rgba(255,255,255,0.45)
    width: 85%
    padding-bottom: 85%
    width: 200%
    padding-bottom: 200%
    background: rgba(255,255,255,0.25)  


                $(function() {
  // Setup Line
  $('.papertabs').append("<li id='papertabs-line'></li>");
  var $line = $('#papertabs-line');
  var $activeItem =  $('.papertabs .active').parent();
  var $activeX = $('.papertabs .active').parent().position().left;
	$line.width($activeItem.width()).css("left", $activeX);

  // Click Event
  $('.papertabs a').click( function(e){

    var $el = $(this);
    var $offset = $el.offset();
   	var $clickX = e.pageX - $offset.left;
   	var $clickY = e.pageY - $;
    var $parentX = $el.parent().position().left;
    var $elWidth = $el.parent().width();

    $('.papertabs .active').removeClass('active');
    $el.addClass('pressed active');

    	left: $clickX + 'px', top: $clickY + 'px'

      left: $parentX, width: $elWidth
    $el.on("animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd", function(){
      setTimeout( function(){
      }, 800);

}); // End Of Document Ready Function