Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <h1>Some Infrgraphics (hover over circles to see stuff)</h1>
<div id="circle"><p class="first-text">Text</p></div><div id="circle2a"><p class="second-text">Text</p><div id="info2"><p> contacting your internet service provider to request that they block your access to the website and/or bringing court proceedings against you.We may revise these terms and conditions from time-to-time. Revised terms and conditions will apply to the use of our website from the date of the publication of the revised terms and conditions on our website. Please check this page regularly to ensure you are familiar with the current version.We may transfer, sub-contract or otherwise deal with our rights and/or obligations under these terms and conditions without notifying you or obtaining your consent.</p></div></div><div id="circle2"><p class="third-text">Hello!</p></div>
<div id="box"><div id="innerBox"><p class="innerText">Text</p></div></div>

<br clear="all">
<div id="msg"> <h2>Chino (Chinese en español)</h2><br>
<span id="text_target"></span></div>
<div id="msg2"> <h2>Inglés (English en español)</h2><br>
<span id="text_target"></span></div>

<br clear="all">
<div id="container">
<div id="topPanel"><!-- quad sections for hover action --><div id="leftTopQuad"></div><div id="rightTopQuad"></div><div id="leftBottomQuad"></div><div id="rightBottomQuad"></div>
<div id="panel1"></div>
<div id="panel2"></div>
<div id="panel3"></div>
<div id="bottomPanel"></div>
</div>
</div>

<br clear="all">
<div id="thumbBox"></div>


<svg><polygon class="small_bldg_right_side" points="31.1,31.7 24.1,25.4 17.2,28.1 17.2,42.6 24.1,45.9 31.1,43.7  "></polygon><polygon class="small_bldg_top" points="310.1,270.8 24.1,30.6 17.2,24.3 24.1,21.6   "></polygon></svg>



<br clear="all"><hr>

<div class="container">
  <div class="carousel">
    <div class="item a">A</div>
    <div class="item b">B</div>
    <div class="item c">C</div>
    <div class="item d">D</div>
    <div class="item e">E</div>
    <div class="item f">F</div>
  </div>
</div><div id="buttons">
<div class="next">><br><br><br>Next</div>
  <div class="prev"><<br><br><br>Previous</div></div>



<br clear="all">


<div class="stage" style="width: 250px; height: 250px; margin:0 auto;padding-top:200px;">
<div class="cubespinner">
<div class="face1"><img src="https://www.shanezentz.com/images/250/website-1.jpg" style="width:240px !important; height:240px !important;" /></div>
<div class="face2"><img src="https://www.shanezentz.com/images/250/photoshop-1.jpg" style="width:240px !important; height:240px !important;" /></div>
<div class="face3"><img src="https://www.shanezentz.com/images/250/photography-1.jpg" style="width:240px !important; height:240px !important;" /></div>
<div class="face4"><img src="https://www.shanezentz.com/images/250/video-1.jpg" style="width:240px !important; height:240px !important;" /></div>
<div class="face5"><img src="https://www.shanezentz.com/images/250/video-2.jpg" style="width:240px !important; height:240px !important;" /></div>
<div class="face6"><img src="https://www.shanezentz.com/images/250/photoshop-2.jpg" style="width:240px !important; height:240px !important;" /></div>
</div>
</div>
              
            
!

CSS

              
                #circle { width:250px;height:250px;background-color:red;border:2px solid blue;border-radius:50%;margin:0 auto;float:left;}
#circle2a { width:250px;height:250px;background-color:orange;border:2px solid blue;border-radius:50%;margin:0 auto;float:left;}
#circle2 { width:250px;height:250px;background-color:green;border:2px solid blue;border-radius:50%;float:left}
.first-text {transform: rotate(-90deg);font-weight:bold;font-size:1px;color:black;text-align:left;}
.third-text {transform: rotate(-90deg);font-weight:bold;font-size:1px;color:black;text-align:left;}
#circle:hover .first-text{font-size:198px; transform: rotate( 0deg); transition: ease-in-out 2s;}
#circle2:hover .third-text{font-size:100px; transform: rotate( -360deg); transition: ease-in-out 2s;}
.second-text {transform: rotate(-90deg);font-weight:bold;font-size:16px;color:black;text-align:left;}
#info2 { display:none; color:black; border: 2px black solid; border-radius:25px; position:relative; top:0; left:255px; width: 250px; height:100%; }
#circle2a:hover #info2 {display:block;}
#circle2:hover {background-color:rgba(255,255,0,.7); transition: ease-in-out 5s;}
#box{float:right;width:250px;height:300px;border:black 2px solid;z-index:0;background:red;overflow:hidden;}
#innerBox{position:relative;left:-250px; width:250px;height:300px;/*display:none;background:yellow;*/z-index:1;overflow:hidden;}
#box:hover > #innerBox {left:0; transform: rotate( 0deg); transition: ease-in-out 2s; }
.innerText{ margin-top:50%;text-align:center;font-size:42px;color:black;font-weight:bold;border:2px solid black;}

#msg {width:300px; float:left;margin:12px;}
#msg2 {width:300px; float:right;margin:12px;}
h2 {font-size:48px; text-align:center;}



#topPanel{z-index:8;margin:0 auto; width:200px;height:200px;background:green;position:relative;}
#bottomPanel{z-index:1; margin:0 auto; width:200px;height:200px;}
#panel1{z-index:1; margin:0 auto; width:200px;height:200px;background:lime; position:relative;}
#panel2{z-index:6; margin:0 auto; width:200px;height:200px;}
#panel3{z-index:7; margin:0 auto; width:200px;height:200px;}
#container{width:300px;height:300px;margin:0 auto;background:blue;}
#leftTopQuad{float:left;width:100px;height:100px;/*background:orange;*/z-index:91}
#rightTopQuad{float:left;width:100px;height:100px;background:violet;z-index:92;position:relative;}
#leftBottomQuad{float:left;width:100px;height:100px;/*background:olive;*/z-index:93}
#rightBottomQuad{float:left;width:100px;height:100px;/*background:red;*/z-index:94}
#rightTopQuad:hover {transform:skewX(-30deg);transform:skewY(10deg);transition: ease-in-out 1s;
/*width:120%;*/
}

/* just a hover shadow here */
#thumbBox {float:left; width:150px;height:200px;border:1px solid black;background:yellow;}
#thumbBox:hover {box-shadow: 0 4px 4px 0 rgba(0,0,0,0.1), 0 4px 8px 0 rgba(0,0,0,0.2);}

.small_bldg_right_side {fill:black;}
.small_bldg_top {fill:red;}




.container {
  background:#333;
  margin: 0 auto;
  width: 250px;
  height: 200px;
  position: relative;
  perspective: 1000px;
}

.carousel {
  height: 100%;
  width: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 3s;
}

.item {
  display: block;
  position: absolute;
  background: #000;
  width: 200px;
  height: 200px;
  line-height: 150px;
  font-size: 5em;
  text-align: center;
  color: #FFF;
  opacity: 0.95;
  border-radius: 20px;
  border: 2px solid black;
}

.a {
  transform: rotateY(0deg) translateZ(250px);
  background: rgba(255,0,0,.6);
}
.b {
  transform: rotateY(60deg) translateZ(250px);
  background: rgba(0,0,255,.6);
}
.c {
  transform: rotateY(120deg) translateZ(250px);
  background: rgba(0,255,0,.6);
}
.d {
  transform: rotateY(180deg) translateZ(250px);
  background: rgba(255,0,255,.6);
}
.e {
  transform: rotateY(240deg) translateZ(250px);
  background: rgba(255,255,0,.6);
} 
.f {
  transform: rotateY(300deg) translateZ(250px);
  background: rgba(255,255,255,.6);
}

.next, .prev {
  color: #FFF;
  position: relative;
  float:left;
  top: 100px;
  padding: 1em;
  cursor: pointer;
  background: blue;
  width:20px; height:20px;
  text-align:center;
  font-weight:bold;
  font-size:20px;
  border-radius: 100%;
  border: 1px solid #FFF;
  /*box-shadow: 0 3px 0 #999;
  transition: box-shadow 0.1s, top 0.1s;*/
}
.next:hover, .prev:hover { color: #333; }
.next:active, .prev:active {
  top: 104px;
  box-shadow: 0 1px 0 #999;
}
#buttons {width:300px;margin:0 auto;}




@-webkit-keyframes spincube {
    from,to  { -webkit-transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    16%      { -webkit-transform: rotateY(-90deg);                           }
    33%      { -webkit-transform: rotateY(-90deg) rotateZ(90deg);            }
    50%      { -webkit-transform: rotateY(-180deg) rotateZ(90deg);           }
    66%      { -webkit-transform: rotateY(-270deg) rotateX(90deg);           }
    83%      { -webkit-transform: rotateX(90deg);                            }
  }@keyframes spincube {
    from,to {
      -moz-transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
      -ms-transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
      transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    16% {
      -moz-transform: rotateY(-90deg);
      -ms-transform: rotateY(-90deg);
      transform: rotateY(-90deg);
    }
    33% {
      -moz-transform: rotateY(-90deg) rotateZ(90deg);
      -ms-transform: rotateY(-90deg) rotateZ(90deg);
      transform: rotateY(-90deg) rotateZ(90deg);
    }
    50% {
      -moz-transform: rotateY(-180deg) rotateZ(90deg);
      -ms-transform: rotateY(-180deg) rotateZ(90deg);
      transform: rotateY(-180deg) rotateZ(90deg);
    }
    66% {
      -moz-transform: rotateY(-270deg) rotateX(90deg);
      -ms-transform: rotateY(-270deg) rotateX(90deg);
      transform: rotateY(-270deg) rotateX(90deg);
    }
    83% {
      -moz-transform: rotateX(90deg);
      -ms-transform: rotateX(90deg);
      transform: rotateX(90deg);
    }
  }
.cubespinner:hover {-webkit-animation-play-state: paused;}
.cubespinner{-webkit-animation-name:spincube;-webkit-animation-timing-function:ease-in-out;-webkit-animation-iteration-count:infinite;-webkit-animation-duration:12s;animation-name:spincube;animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-duration:12s;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transform-origin:60px 60px 0;-moz-transform-origin:60px 60px 0;-ms-transform-origin:60px 60px 0;transform-origin:60px 60px 0}.cubespinner div{position:absolute;width:240px;height:240px;border:3px solid #000;background:rgba(255,255,255,.2);box-shadow:inset 0 0 20px rgba(0,0,0,.8);}
.cubespinner .face1{-webkit-transform:translateZ(120px);-moz-transform:translateZ(120px);-ms-transform:translateZ(120px);transform:translateZ(120px);/*-webkit-backface-visibility: hidden;background:rgba(255,0,0,.3);*/opacity:.8;}
.cubespinner .face2{-webkit-transform:rotateY(90deg) translateZ(120px);-moz-transform:rotateY(90deg) translateZ(120px);-ms-transform:rotateY(90deg) translateZ(120px);transform:rotateY(90deg) translateZ(120px);/*-webkit-backface-visibility: hidden;background:rgba(255,255,0,.3);*/opacity:.8;}
.cubespinner .face3{-webkit-transform:rotateY(90deg) rotateX(90deg) translateZ(120px);-moz-transform:rotateY(90deg) rotateX(90deg) translateZ(120px);-ms-transform:rotateY(90deg) rotateX(90deg) translateZ(120px);transform:rotateY(90deg) rotateX(90deg) translateZ(120px);/*-webkit-backface-visibility: hidden;background:rgba(0,0,255,.3);*/opacity:.8;}
.cubespinner .face4{-webkit-transform:rotateY(180deg) rotateZ(90deg) translateZ(120px);-moz-transform:rotateY(180deg) rotateZ(90deg) translateZ(120px);-ms-transform:rotateY(180deg) rotateZ(90deg) translateZ(120px);transform:rotateY(180deg) rotateZ(90deg) translateZ(120px);/*-webkit-backface-visibility: hidden;background:rgba(255,255,255,.3);*/opacity:.8;}
.cubespinner .face5{-webkit-transform:rotateY(-90deg) rotateZ(90deg) translateZ(120px);-moz-transform:rotateY(-90deg) rotateZ(90deg) translateZ(120px);-ms-transform:rotateY(-90deg) rotateZ(90deg) translateZ(120px);transform:rotateY(-90deg) rotateZ(90deg) translateZ(120px);/*-webkit-backface-visibility: hidden;background:rgba(0,0,0,.3);*/opacity:.8;}
.cubespinner .face6{-webkit-transform:rotateX(-90deg) translateZ(120px);-moz-transform:rotateX(-90deg) translateZ(120px);-ms-transform:rotateX(-90deg) translateZ(120px);transform:rotateX(-90deg) translateZ(120px);/*-webkit-backface-visibility: hidden;background:rgba(0,255,0,.3);*/opacity:.8;}
              
            
!

JS

              
                var showText = function (target, message, index, interval) {    
  if (index < message.length) { 
    $(target).append(message[index++]); 
    setTimeout(function () { showText(target, message, index, interval); }, interval); 
  } 
}
    
$(function () { 
 
  showText("#msg", "查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。查看浴室改造,厨房改造和地下室改造完成的项目的照片从你的丹佛重塑承包商,全球建设。", 0, 60);    
 
}); 

$(function () { 
 
  showText("#msg2", "The cold and flu viruses are so tiny, you need a microscope to see them, and without warning, these tiny organisms can invade your body and completely ruin your day. The threat of this happening only increases when you don't have the proper indoor air quality solution for your home because these viruses will then get trapped inside your home and quickly spread through the space. This can be especially true during the colder months out of the year when your indoor humidity levels are averagely lower and the air is more stagnant. Prevention is always going the be the best method of combating these unseen threats, and one of the best ways to prevent the spread of these viruses throughout your home is to utilize quality indoor air quality solutions like Reme Halo from .vquality solution for your home because these viruses will then get trapped inside your home and quickly spread through the space. This can be especially true during the colder months out of the year when your indoor humidity levels are averagely lower and the air is more stagnant. Prevention is always going the be the best method of combating", 0, 60);    
 
}); 

jQuery(document).ready(function($) {
var carousel = $(".carousel"),
    currdeg  = 0;

$(".next").on("click", { d: "n" }, rotate);
$(".prev").on("click", { d: "p" }, rotate);

function rotate(e){
  if(e.data.d=="n"){
    currdeg = currdeg - 60;
  }
  if(e.data.d=="p"){
    currdeg = currdeg + 60;
  }
  carousel.css({
    "-webkit-transform": "rotateY("+currdeg+"deg)",
    "-moz-transform": "rotateY("+currdeg+"deg)",
    "-o-transform": "rotateY("+currdeg+"deg)",
    "transform": "rotateY("+currdeg+"deg)"
  });
}

});
              
            
!
999px

Console