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

              
                <!--watch tutorial at https://youtu.be/1W5l8PMPUqk-->


<!--<div class="textRevealContainer">
	<div class="textReveal">
		<div>
			<div>
				Text Reveal Animation
			<div>
		</div>
	</div>
<div>-->

<div class="textRevealContainer">
  <div class="textReveal rotateY">
    <div>
      <div>
        Text Reveal Animation
        <div>
        </div>
      </div>
      <div>

        <!--<div class="textRevealContainer">
	<div class="textReveal x50">
		<div>
			<div>
				Text Reveal Animation
			<div>
		</div>
	</div>
<div>-->

        <!--<div class="textRevealContainer">
	<div class="textReveal x100">
		<div>
			<div>
				Text Reveal Animation
			<div>
		</div>
	</div>
<div>-->

        <!--<div class="textRevealContainer">
	<div class="textReveal zoom">
		<div>
			<div>
				Text Reveal Animation
			<div>
		</div>
	</div>
<div>-->

        <!--<div class="textRevealContainer">
	<div class="textReveal zoom x50">
		<div>
			<div>
				Text Reveal Animation
			<div>
		</div>
	</div>
<div>-->

        <!--<div class="textRevealContainer">
	<div class="textReveal rotateY x50">
		<div>
			<div>
				Text Reveal Animation
			<div>
		</div>
	</div>
<div>-->

        <!--<div class="textRevealContainer">
	<div class="textReveal color">
		<div>
			<div>
				Text Reveal Animation
			<div>
		</div>
	</div>
<div>-->
              
            
!

CSS

              
                .textRevealContainer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Comic Sans MS", cursive, sans-serif;
  font-size: 1.5em; /*adjust according to your need*/
  text-align: center; /*in case you write multiline text*/
}

.textReveal {
  overflow: hidden;
  animation: textRevealAnim 2s ease 0.5s forwards;
}

.textReveal > div {
  padding: 8px 16px;
  transform: translateX(100%);
  border-left: 2px solid red;
  overflow: hidden;
  animation: textRevealAnim 2s ease 0.5s forwards,
    borderOpacityAnim 2s ease 0.5s forwards;
}

.textReveal > div > div {
  transform: translateX(-100%);
  animation: textRevealAnim 2s ease 0.5s forwards;
}

@keyframes textRevealAnim {
  to {
    transform: translateX(0);
  }
}

@keyframes borderOpacityAnim {
  50% {
    border-left: 2px solid red;
  }
  100% {
    border-left: 2px solid transparent;
  }
}

.textReveal.x50 {
  transform: translateX(-50%);
}

.textReveal.x100 {
  transform: translateX(-100%);
}

.textReveal.zoom > div {
  transform: translateX(100%) scale(0.5, 0.5);
}

.textReveal.rotateY {
  perspective: 100px; /*adjust according to your need*/
}

.textReveal.rotateY > div {
  transform: translateX(100%) rotateY(20deg);
}

.textReveal.color > div > div {
  background: linear-gradient(
    to right,
    red,
    red 45%,
    orange 45%,
    orange 55%,
    red 55%,
    red
  );
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-size: 300%;
  animation: textRevealAnim 2s ease 0.5s forwards,
    bgShiftAnim 3s ease 0.5s forwards;
}

@keyframes bgShiftAnim {
  to {
    background-position: 100%;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console