Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <div class="home-featured">
  <div class="wrap">
    <div class="home-widgets-1">
      <article>
        <div class="homeintro">
          <header id="intro1">
            <h1>Google is now prioritizing mobile-friendly search results. Is your site ready?</h1>
          </header>
          <h1 id="intro2">I specialize in WordPress, Foundation and Bootstrap; Responsive Web Design</h1>
          <p id="intro3">A responsive mobile-ready website is a ‘must have’ in today’s world where over 50% percent of web browsing is done on a mobile device. A responsive website provides for a simpler user experience, and navigating a full website on a smartphone or tablet is difficult, but responsive websites adjust content to improve this experience for any screen size. I can improve your business with Responsive Web Design along with other services I'm skilled at…</p>

        </div>
      </article>
    </div>
  </div>
  <p class="arrow"><button>&#8675;</button></p>
</div>
              
            
!

CSS

              
                h1, p {
  color: #000;
}

.home-featured {
  display: block;
}

.home-featured .wrap {
  margin-top: -160px;
  max-width: 790px;
  display: table;
  text-align: center;
}

.wrap {
  margin: 0 auto;
  max-width: 1280px;
}

.home-featured .home-widgets-1 {
  display: inline-block;
  display: table-cell;
  vertical-align: middle;
  width: 100%;
  padding: 200px 10px 0;
  font-size: 20px;
}

.arrow {
  text-align: center;
}

button {
  padding: 7px 15px;
  border-radius: 100%;
  font-size: 30px;
  font-weight: bolder;
  border: none;
}

.homeintro, .arrow {
  visibility: hidden;
}

#intro1, #intro2_3 {
  display: none;
}

              
            
!

JS

              
                //when js kicks in show
		TweenLite.set(".homeintro, .arrow", {visibility:"visible"})
		
		var tl = new TimelineLite()
		
		.set("#intro1", {display:"block"})
		
		//bring in first item and then have it disappear
		tl.from("#intro1", 1, {delay:0.8, scale:0.5, autoAlpha:0, repeat:1, repeatDelay:3, yoyo:true})
		
		//swap one for the other to avoid page jump
		.set("#intro1", {display:"none"})
		.set("#intro2", {display:"block"})
		
		//stagger in next 3 and have them remain
		.staggerFrom("#intro2, #intro3, .arrow",  1, {delay:0.5, scale:0.5, autoAlpha:0}, 0.0001)
              
            
!
999px

Console