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.

            
              <h1>Some buttons</h1>  
  <p>
I've not tested these cross browser yet...
</p>
<button class="light">
  Hover over me
</button>
<button class="bounce">
  Hover over me
</button>
<button class="letters">
  Hover over me
</button>
            
          
!
            
              body{
  font-family: Arial,Helvetica,sans-serif;
  color:#555;
  background:#ddd;
}
button{
        padding: 0.8em 0em;
        width:350px;
        background: #ff6e00;
        border-radius:15px;
        border:0;
        color:#fff;
        font-size:1.2em;
        font-family: Arial,Helvetica,sans-serif;
        font-weight:bold;
        cursor:pointer;
        margin:1em 2em;
        text-transform:uppercase;
}
.light{
background: -moz-linear-gradient(-45deg,  #ff6e00 0%, #ff6e00 40%, #ffffff 50%, #ff6e00 60%, #ff6e00 100%);
background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,#ff6e00), color-stop(40%,#ff6e00), color-stop(50%,#ffffff), color-stop(60%,#ff6e00), color-stop(100%,#ff6e00));
background: -webkit-linear-gradient(-45deg,  #ff6e00 0%,#ff6e00 40%,#ffffff 50%,#ff6e00 60%,#ff6e00 100%);
background: -o-linear-gradient(-45deg,  #ff6e00 0%,#ff6e00 40%,#ffffff 50%,#ff6e00 60%,#ff6e00 100%);
background: -ms-linear-gradient(-45deg,  #ff6e00 0%,#ff6e00 40%,#ffffff 50%,#ff6e00 60%,#ff6e00 100%);
background: linear-gradient(135deg,  #ff6e00 0%,#ff6e00 40%,#ffffff 50%,#ff6e00 60%,#ff6e00 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff6e00', endColorstr='#ff6e00',GradientType=1 );
background-repeat: no-repeat;  
background-position:0px;
background-size:300%;  
}

.light:hover{
  animation:light 1s;
    -webkit-animation:light 1s;
  
}

@keyframes light {
  0% {
        background-position:-600px; 
  }
  100% { 
        background-position:0px; 
  }
}
        
@-webkit-keyframes light {
  0% {
        background-position:-600px; 
  }
  100% { 
        background-position:0px; 
  }
}

.bounce:hover{
  animation:bounce 1s;
    -webkit-animation:bounce 1s;
  
}

@keyframes bounce {
  0% {
        border-radius:15px;
  }
  20% {
        border-radius:30px;
  }  
  60% {
        border-radius:0px;
        transform:scale(1.1);
            -ms-transform:scale(1.1); /* IE 9 */
            -webkit-transform:scale(1.1); /* Safari and Chrome */        
  }
  90% { 
        transform:scale(0.98);
            -ms-transform:scale(0.98); /* IE 9 */
            -webkit-transform:scale(0.98); /* Safari and Chrome */         
  }
  100% { 
        border-radius:15px;     
  }
}
        
@-webkit-keyframes bounce {
  0% {
        border-radius:15px;
  }
  20% {
        border-radius:30px;
  }  
  60% {
        border-radius:0px;
        transform:scale(1.1);
            -ms-transform:scale(1.1); /* IE 9 */
            -webkit-transform:scale(1.1); /* Safari and Chrome */
  }
  90% { 
        transform:scale(0.98);
            -ms-transform:scale(0.98); /* IE 9 */
            -webkit-transform:scale(0.98); /* Safari and Chrome */         
  }
  100% { 
        border-radius:15px;     
  }
}     

.letters{
  white-space:nowrap;
  overflow:hidden;
  transition: letter-spacing 3s;
    -webkit-transition: letter-spacing 3s; /* Safari */
  transition-delay: 0.5s;
    -webkit-transition-delay: 0.5s;
}

.letters:hover{
  letter-spacing:15.5px;
  transition-delay: 0s;
    -webkit-transition-delay: 0s;  
}


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

Console