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.

            
              <h1 class="no-transition">
  <span>L</span>
  <span>o</span>
  <span>a</span>
  <span>d</span>
  <span>i</span>
  <span>n</span>
  <span>g</span>
</h1>
            
          
!
            
              @import "compass/css3";

/* The hover effect */

span {
 transform-origin: 50% 50% 80px;
 transform: rotateX(0deg);
 position: absolute;
 width: 20px;
}

h1.no-transition span {
  transition: all 0s !important;
  transform: rotateX(0deg) !important;
}

@for $i from 1 through 7 {
  span:nth-child(#{$i}) {
    transition: all 0.7s ease + ' ' + $i /8 + s;
    left: $i * 31 + px;
  }
}

h1:hover span {
  transform: rotateX(360deg);
  color: deeppink;
}

/* Beautifications */

html {
  height: 100%;
}

body {
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  font-family: Monaco, Consolas, "Lucida Console", monospace;
  font-smoothing: antialiased;
  perspective: 700px;
  transform-style: preserve-3d;
  
  background-color: #ffffff;
@include filter-gradient(#ffffff, #eae0de, horizontal);
@include background-image(radial-gradient(center, ellipse cover, #ffffff 0%,#eae0de 100%));
}

h1 {
  position: relative;
  margin-top: -40px;
  top: 50%;
  width: 260px;
  height: 55px;
  margin-left: -130px;
  cursor: pointer; 
  left: 50%;
  font-size: 47px;
  color: #556270;
}

.transition span{
  transform: rotateX(360deg);
}
            
          
!
            
              var container = document.querySelector( 'h1' );
var palette = [ '#4ECDC4', '#A9CF54', '#FF6B6B', '#556270']
var paletteIndex = 0;

setInterval( function() {
  
  // Reset spans rotation without transitions
  container.className = 'no-transition';
  
  // Debounce change to allow for css changes
  setTimeout( function() {
    container.style.color = palette[paletteIndex];
    container.className = 'transition';
    paletteIndex += 1;
    paletteIndex %= palette.length;
  }, 10 );
  
  
}, 2500 );
            
          
!
999px
Loading ..................

Console