Pen Settings



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


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


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.


Auto Save

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.


                <main class="text-reveal-page">
<section class="h-screen border-b">
    <span class="section-label">section 100vh</span>
<section class="h-screen border-b">
     <span class="section-label">
        section 100vh

<section class="text-reveal" id="textReveal">

    <div class="container">
        <p class="text-reveal_text">
            Lorem ipsum dolor sit amet, consectetur adipisicing elit.
            Atque autem dolore ducimus facere maxime perspiciatis
            repellat soluta vel? Accusamus accusantium cum expedita
            quis tempore? Beatae nesciunt numquam soluta. Adipisci,
            aut cumque fuga illo magni molestias natus nisi numquam
            omnis quas tempore voluptatibus.</p>


<section class="h-screen border-b">
     <span class="section-label">
        section 100vh



                @import url('');

  min-height: 100vh;
  width: 100%;

  border-bottom: 6px solid black;

  font-size: 16px;
  font-family: monospace;
  color: black;

  background-color: #DBD6CD;

  min-height: 300vh;
	padding: 64px 0;
	max-width: 1200px;
	margin: 0 auto;
	min-height: 100vh;
	display: flex;
	align-items: center;

	//display: flex;
	font-family: 'Syncopate', sans-serif;
	text-align: center;
	font-size: 32px;
	line-height: 120%;
	width: 100%;

	  display: inline;
	  opacity: 1;
	  //margin: 0 5px;
	  will-change: opacity;



const textReveal = document.getElementById('textReveal');

const textContent = textReveal.querySelector('p')
let textRaw = textContent.innerText.split(' ');
splitText(textContent, textRaw)

function splitText(wrapper, words){
  wrapper.innerHTML = '';
    let span = `<span>${word+" "}</span>`;


const revealWords = gsap.utils.toArray('.text-reveal_text span');


    trigger: '.text-reveal',
    start: 'top top',
    end: 'bottom bottom',
    markers: true,
    scrub: true,
    pin: '.container',
  opacity: 0.05,
  stagger: 0.4,
  ease: "steps(1)",
  // duration: 0,