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 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

              
                <h2>Transcript One - tiny font 90 rotation</h2>
<div class="quest-label label">
question related
</div>
<div class="art-label label">
art related 
</div>
<div class="non-label label">
not related 
</div>
<button onclick="showText()">show text</button>
<button onclick="hideText()">hide text</button>


<p class="rotate" id="tiny">
<span class="question">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo?</span><span class="arty-statement">Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit.</span><span class="not-cat">Sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.</span><span class="arty-statement">Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.</span><span class="not-cat">Ut enim ad.</span><span class="question">Minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur?</span><span class="not-cat">Other words and stuff.</span><span class="question">Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"</span>
</p>

              
            
!

CSS

              
                body{
  background-color: #424242;
  font-family: sans-serif;

}


h2 {
  color: #fff;  
  border-bottom: 1px solid #efefef;
}

p {
  width: 50%;
  margin:auto;
  font-size: 1.3em;
  text-align: justify;  
  text-justify:inter-word;
  font-family: monospace;
}

#tiny {
  font-size: 5px;
}

.rotate {
  width: 300px;
  display:block;
  margin-top: 125px;
   /* Safari */
-webkit-transform: rotate(-90deg);
/* Firefox */
-moz-transform: rotate(-90deg);
/* IE */
-ms-transform: rotate(-90deg);
/* Opera */
-o-transform: rotate(-90deg);
/* Internet Explorer */
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}

.question {
  background-color: lightblue;
  color: lightblue;  
}

.arty-statement {
  background-color:lightgreen;
  color:lightgreen;
}

.not-cat {
  background-color:#fff;
  color:#fff;
}

.label {
  color: #fff;
  font-family: sans-serif;
  font-size: 1.2em;
  width: 200px;
  margin:7px;
}

.art-label {
  border-right: 20px solid lightgreen;
}

.quest-label {
  border-right: 20px solid lightblue;
}

.non-label {
  border-right: 20px solid white;
}


.rotate-sentences {
  margin-top: 300px;
}
.rotate-sentences span.question {
  transform:rotate(7deg);
    -ms-transform:rotate(7deg); /* IE 9 */
    -moz-transform:rotate(7deg); /* Firefox */
    -webkit-transform:rotate(7deg); /* Safari and Chrome */
    -o-transform:rotate(7deg); /* Opera */
    display: inline-block;
}

.rotate-sentences span.arty-statement {
  transform:rotate(-7deg);
    -ms-transform:rotate(-7deg); /* IE 9 */
    -moz-transform:rotate(-7deg); /* Firefox */
    -webkit-transform:rotate(-7deg); /* Safari and Chrome */
    -o-transform:rotate(-7deg); /* Opera */
    display: inline-block;
}
              
            
!

JS

              
                function showText (){
  var spans = document.getElementsByTagName('span');
for(var i = 0; i < spans.length; i++) {
    spans[i].setAttribute("style", "color:#000;");
}

}

function hideText (){
  var spans = document.getElementsByTagName('span');
for(var i = 0; i < spans.length; i++) {
    spans[i].setAttribute("style", "");
}

}
              
            
!
999px

Console