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.

            
              <html>
<head>
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" />
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css" />
  
</head>
<body ng-app="validationApp" ng-controller="mainController">
<div class="container">

  <h1>CSS3 3D social link carousel</h1>
  
  <div id="sociallinks">
                                
    <a class="btn btn-primary fa fa-twitter" target="_blank" href="https://twitter.com/simra_ch"><i></i> twitter</a>

    <a class="btn btn-primary fa fa-wordpress" target="_blank" href="http://simra.ch/blog"><i></i> blog</a>

    <a class="btn btn-primary fa fa-stack-overflow" target="_blank" href="http://stackoverflow.com/users/1180262/simon-sch%c3%a4rer"><i></i> stackoverflow</a>

    <a class="btn btn-primary fa fa-jsfiddle" target="_blank" href="http://jsfiddle.net/user/axax06/fiddles/"><i></i> jsfiddle</a>

    <a class="btn btn-primary fa fa-rss" target="_blank" href="<?php bloginfo('rss2_url'); ?>"><i></i> feed</a>

    <a class="btn btn-primary fa fa-facebook" target="_blank" href="https://www.facebook.com/simra.ch"><i></i> facebook</a>
    
    <a class="btn btn-primary fa fa-github" target="_blank" href="https://github.com/axax"><i></i> github</a>
    
    <a class="btn btn-primary fa fa-linkedin" target="_blank" href="https://www.linkedin.com/pub/simon-sch%C3%A4rer/18/339/a12"><i></i> linkedin</a>
    
    <a class="btn btn-primary fa fa-envelope-o" target="_blank" href="mailto:axax@gmx.ch"><i></i> email</a>
    
    <a class="btn btn-primary fa fa-stack-exchange" target="_blank" href="http://stackexchange.com/users/1211863/simon-sch%C3%A4rer"><i></i> stackexchange</a>
    
    <a class="btn btn-primary fa fa-codepen" target="_blank" href="https://codepen.io/axax/public/"><i></i> codepen</a>

    <a class="btn btn-primary fa fa-desktop" target="_blank" href="https://slides.com/axax"><i></i> slides</a>

    <a class="btn btn-primary fa fa-wordpress" target="_blank" href="https://de.gravatar.com/axax06"><i></i> gravatar</a>


  </div>
  
  
  <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
  <script src="app.js"></script>
</body>
</html>

            
          
!
            
              
@-webkit-keyframes spin {
    0% { -webkit-transform: rotateY( 0deg ); }
    100% { -webkit-transform: rotateY( 360deg ); }
}
@-moz-keyframes spin {
    0% { -moz-transform: rotateY( 0deg ); }
    100% { -moz-transform: rotateY( 360deg ); }
}
@-ms-keyframes spin {
    0% { -ms-transform: rotateY( 0deg ); }
    100% { -ms-transform: rotateY( 360deg ); }
}
@-o-keyframes spin {
    0% { -o-transform: rotateY( 0deg ); }
    100% { -o-transform: rotateY( 360deg ); }
}
@keyframes spin {
    0% { transform: rotateY( 0deg ); }
    100% { transform: rotateY( 360deg ); }
}

#sociallinks {
    height:300px;
    width: 100%;
    margin-left: 50%;
    margin-bottom: 40px;
    margin-top:40px;
    
    position: relative;
    -webkit-animation: spin 30s infinite linear;
    -moz-animation: spin 30s infinite linear;
    -ms-animation: spin 30s infinite linear;
    -o-animation: spin 30s infinite linear;
    animation: spin 30s infinite linear;
    -webkit-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    transform-style: preserve-3d;
}
#sociallinks > .btn {
    position: absolute;
    -webkit-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    transform-origin: 0 0;
    outline: 1px solid transparent;
    font-size:1.4em;
    
}

#sociallinks > .btn:hover{
    padding-left:50px;
    text-align: right;
}
            
          
!
            
              var supports3DTransforms = document.body.style['perspectiveProperty'] !== undefined ||
document.body.style['WebkitPerspective'] !== undefined ||
document.body.style['MozPerspective'] !== undefined ||
document.body.style['msPerspective'] !== undefined ||
document.body.style['OPerspective'] !== undefined;
   
if (supports3DTransforms) {
        
  var $tree=$("#sociallinks");
    
  $tree.children().each(function(){
    var x = 0, y = Math.round(Math.random() * $tree.height());
    var rx = 0, ry = Math.random() * 360, rz = -Math.random() * 15;
    $(this).css({   backgroundColor:"#" +Math.floor(Math.random()*16777215/2).toString(16), border:"none",transform:'translate3d(' + x + 'px, ' + y + 'px, 0px) rotateX(' + rx + 'deg) rotateY(' + ry + 'deg) rotateZ(' + rz + 'deg)'});
  });
}
            
          
!
999px
Loading ..................

Console