Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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="main box">
<div class="rotateBox">
    <div class="transBox">
        <div class="list_1 front">
            <div class="ico"></div>
        </div>
        <div class="list_1 back">
            <div class="ico"></div>
            <div class="text">Photoshop CC</div>
            <a href="##" target="_blank" class="an">Windows</a>
            <a href="##" target="_blank" class="an">MAC</a>
        </div>
    </div>
</div>
<div class="rotateBox">
    <div class="transBox">
        <div class="list_1 front">
            <div class="ico"></div>
        </div>
        <div class="list_1 back">
            <div class="ico"></div>
            <div class="text">Dreamweaver CC</div>
            <a href="##" target="_blank" class="an">Windows</a>
            <a href="##" target="_blank" class="an">MAC</a>
        </div>
    </div>
</div>
<div class="rotateBox">
    <div class="transBox">
        <div class="list_1 front">
            <div class="ico"></div>
        </div>
        <div class="list_1 back">
            <div class="ico"></div>
            <div class="text">Fireworks CS6</div>
            <a href="##" target="_blank" class="an">Windows</a>
            <a href="##" target="_blank" class="an">MAC</a>
        </div>
    </div>
</div>
<div class="rotateBox">
    <div class="transBox">
        <div class="list_1 front">
            <div class="ico"></div>
        </div>
        <div class="list_1 back">
            <div class="ico"></div>
            <div class="text">Illustrator CC</div>
            <a href="##" target="_blank" class="an">Windows</a>
            <a href="##" target="_blank" class="an">MAC</a>
        </div>
    </div>
</div>
<div class="rotateBox">
    <div class="transBox">
        <div class="list_1 front">
            <div class="ico"></div>
        </div>
        <div class="list_1 back">
            <div class="ico"></div>
            <div class="text">Flash Professional CS6</div>
            <a href="##" target="_blank" class="an">Windows</a>
            <a href="##" target="_blank" class="an">MAC</a>
        </div>
    </div>
</div>
<div class="rotateBox">
    <div class="transBox">
        <div class="list_1 front">
            <div class="ico"></div>
        </div>
        <div class="list_1 back">
            <div class="ico"></div>
            <div class="text">InDesign CS6</div>
            <a href="##" target="_blank" class="an">Windows</a>
            <a href="##" target="_blank" class="an">MAC</a>
        </div>
    </div>
</div>
<div class="rotateBox">
    <div class="transBox">
        <div class="list_1 front">
            <div class="ico"></div>
        </div>
        <div class="list_1 back">
            <div class="ico"></div>
            <div class="text">Premiere Pro CC</div>
            <a href="##" target="_blank" class="an">Windows</a>
            <a href="##" target="_blank" class="an">MAC</a>
        </div>
    </div>
</div>
<div class="rotateBox">
    <div class="transBox">
        <div class="list_1 front">
            <div class="ico"></div>
        </div>
        <div class="list_1 back">
            <div class="ico"></div>
            <div class="text">After Effects CC</div>
            <a href="##" target="_blank" class="an">Windows</a>
            <a href="##" target="_blank" class="an">MAC</a>
        </div>
    </div>
</div>
</div>

              
            
!

CSS

              
                //From: adobe.v404.cn
body{
  font-size:12px;
  color:#454545;
  background:#000;
}
html{
  scrollbar-face-color:#eaeaea;
  scrollbar-highlight-color: #ffffff;
  scrollbar-shadow-color:#999999;
  scrollbar-3dlight-color:#999999;
  scrollbar-arrow-color:#999999;
  scrollbar-darkshadow-color:#ffffff;
}
::-webkit-scrollbar{
  width:12px;
  height:12px;
}
::-webkit-scrollbar-button:vertical{
  display:none;
}
::-webkit-scrollbar-track:vertical{
  background-color:black;
}
::-webkit-scrollbar-track-piece{
  background:#F0F0F0;
}
::-webkit-scrollbar-thumb:vertical{
  background-color:#8E8E8E;
  border-radius:0px;
}
::-webkit-scrollbar-thumb:vertical:hover{
  background-color:#3B3B3B;
}
::-webkit-scrollbar-corner:vertical{
  background-color:#535353;
}
::-webkit-scrollbar-resizer:vertical{
  background-color:#FF6E00;
}

.main{ 
  min-height: 340px; 
  min-width: 1200px; 
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
}
//.color_10{background: #000;}

/*动画*/
@keyframes entrance{
    0%{
        top:10%;
        opacity:0.1
    }
     100%{
         top:50%;
         opacity:1
     }
 }

/*每列*/
.list_1{
  overflow:hidden;
}

/*颜色*/
.ico,
.ico1{
  top:50%; 
  position:relative; 
  margin-top:-140px; 
  left:50%; 
  margin-left:-110px;
  width:220px; 
  height:220px; 
  overflow:hidden;
}
.ico{ 
  .front & {  background:url(https://www.w3cplus.com/sites/default/files/blogs/2015/1508/Ico_01.png) no-repeat 0 0; 
    }
  .back &{
    background:url(https://www.w3cplus.com/sites/default/files/blogs/2015/1508/Ico_02.png) no-repeat 0 0;
  }
}

.text{
  top:50%; 
  position:relative; 
  clear:both; 
  margin-top:-40px; 
  height:40px; 
  text-align:center; 
  line-height:40px; 
  overflow:hidden; 
  width:100%; 
  color:#FFF; 
  font-size:16px;
}
.an{
  top:50%; 
  position:relative; 
  width:140px; 
  height:40px; 
  line-height:40px; 
  overflow:hidden; 
  display:block; 
  text-align:center; 
  font-size:14px; 
  background:#40c666; 
  color:#FFF; 
  text-decoration:none;
  border-radius:3px; 
  margin-top:10px; 
  margin-left:auto; 
  margin-right:auto;
  transition:color .2s linear,background-color 0.2s linear;
  
  &:hover {
    text-decoration:underline;
    background:#000;
    text-decoration:none;
    transition:color .2s linear,background-color 0.2s linear;
  }
}


//color list
$color-list-front: #358fc9 #40c666 #dec345 #ee9833 #db593b #c04067 #a569d7 #6156c3;
$color-list-back: #2271b6 #2ab248 #d2ae2e #e87a21 #ce3d26 #aa2a49 #894ac8 #443bae;



/*动画*/
.rotateBox{ 
  overflow:hidden;  
  height: 500px; 
  float: left; 
  position: relative;
  perspective:600px;
  
  @for $i from 1 through length($color-list-front){
    &:nth-child(#{$i}) .front{
      background: nth($color-list-front, $i);
      .ico{
        background-position: -($i - 1) * 240px 0;
      }
    }
  }
  @for $i from 1 through length($color-list-back){
    &:nth-child(#{$i}) .back{
      background: nth($color-list-back, $i);  
      .ico {
        background-position: -($i - 1) * 240px 0;
      }
    }
  }
  &:hover .transBox{
    transform: rotateY(-90deg);
  }
}
.transBox{
  transform-style: preserve-3d;
  position:absolute; 
  top: 0; 
  left: 0; 
  transition:.5s; 
  
  .list_1{
    position: absolute; 
    height: 500px;
  }
  .front{
    left: 0; 
    top:0;
  }
  .back{
    left: 200px; 
    top:0; 
    transform-origin: left;
    transform: rotateY(90deg);
    position: absolute
  }
}

              
            
!

JS

              
                $(function(){
    
    var isIe = navigator.userAgent.indexOf('MSIE')>=0 ? true : false;
  

    function WidthHeightInit() {
        var oWidth = $(window).outerWidth(),oHeight = $(window).outerHeight();
        if(oHeight < 400){
            $('.list_1').css('height',400);
            $('.main').css('height',400);
            $('.list_1,.rotateBox,.transBox').css('height',400);
        }else{
            $('.list_1').css('height',oHeight);
            $('.main').css('height',oHeight);
            $('.list_1,.rotateBox,.transBox').css('height',oHeight);
        };
        if(oWidth < 1200){
            $('.list_1,.rotateBox,.transBox').css('width',150);
            $('.transBox').each(function(){$(this).find('.list_1').eq(1).css('left',150)})
            if(isIe){
                $('.transBox').css('width',300);
            };
            $('main').css('width',1200);
            $('.transBox').css({
                '-webkit-transform-origin':'center center -75px',
                '-moz-transform-origin':'center center -75px',
                '-o-transform-origin':'center center -75px',
                '-ms-transform-origin':'center center -75px'
            });
        }else{
            $('.list_1,.rotateBox,.transBox').css('width',oWidth / 8);
            $('.transBox').each(function(){$(this).find('.list_1').eq(1).css('left',oWidth/8)});
            if(isIe){
                $('.transBox').css('width',oWidth/4);
            };
            $('.main').css('width',oWidth);
            $('.transBox').css({
                '-webkit-transform-origin':'center center -'+oWidth/16+'px',
                '-moz-transform-origin':'center center -'+oWidth/16+'px',
                '-o-transform-origin':'center center -'+oWidth/16+'px',
                '-ms-transform-origin':'center center -'+oWidth/16+'px'
            });
        }
    }
    WidthHeightInit();

    $(window).resize(function(){
        WidthHeightInit();
    });


    var oTimer = null, i=0;
    if(oTimer){return};
    oTimer = setInterval(function(){
        $('.ico').eq(i).addClass('icon_entrance');
        i++;
        if(i == $('.icon').length){
            clearInterval(oTimer);
            oTimer = null;
        }
    },1);


    if(isIe){
        if(navigator.userAgent.match(/MSIE 6./i) || navigator.userAgent.match(/MSIE 7./i) || navigator.userAgent.match(/MSIE 8./i) || navigator.userAgent.match(/MSIE 9./i)){
            $('.ico').css({top:'50%',opacity:'1'})
        }

        $('.back').removeClass('back');
        $('.rotateBox').hover(function(){
            console.log(1)
            var oBox = $(this).find('.transBox');
            var oW = parseInt(oBox.css('width'));
            oBox.stop().animate({
                left: -oW/2
            });
        },function(){
            console.log(2)
            var oBox = $(this).find('.transBox');
            oBox.stop().animate({
                left: 0
            });
        });
    };
});
              
            
!
999px

Console