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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <header>
 <nav>
  <ul>
   <li>SharePoint</li>
   <li>CSS</li>
   <li>HTML</li>
   <li>JavaScript</li>
  </ul>
 </nav>
</header>
<div id="logo">Rachel H. Designer</div>
<div class="container">
 <ul class="fp">
  <li>
   <span>Image 01</span>
   <div><h3>SharePoint</h3></div>
  </li>
  <li>
   <span>Image 02</span>
   <div><h3>Code</h3></div>
  </li>
  <li>
   <span>Image 03</span>
   <div><h3>Creativity</h3></div>
  </li>
  <li>
   <span>Image 04</span>
   <div><h3>Web Design</h3></div>
  </li>
  <li>
   <span>Image 05</span>
   <div><h3>Solutions</h3></div>
  </li>
  <li>
   <span>Image 06</span>
   <div><h3>JavaScript</h3></div>
  </li>
 </ul>
</div>

              
            
!

CSS

              
                body {
 font-family: "M PLUS Rounded 1c", sans-serif;
}
h1,h3 {
 font-family: "Bebas Neue", cursive;
}
header {
 border-bottom: 1px solid crimson;
 height: 54px;
}
nav ul {
 background-color: white;
 display: flex;
 justify-content: space-around;
 padding: 20px 0px 10px 0px;
}
#logo {font-family: "Bebas Neue", cursive;
font-size:28px;padding-top:0px;margin-top:-5px;color:crimson;position:absolute;transform:translateX(-250px);z-index:100;background-color:rgba(255,255,255,.7);text-shadow:1px 1px #fff;padding:20px;top:85px;left:0px;transition:transform 350ms ease-in-out;}
#logo.active {transform:translateX(0px);transition:transform 350ms ease-in-out;}

nav ul li {
 cursor: pointer;
 color: inherit;
 background-color: inherit;
 transition: color 350ms ease-in-out;
 position: relative;
}
nav ul li:hover {
 color: crimson;
}
nav ul li:after {
 content: "";
 position: absolute;
 top: 24px;
 border-left: 10px solid transparent;
 border-right: 10px solid transparent;
 border-bottom: 10px solid white;
 transition: border-bottom 450ms ease-in-out;
}
nav ul li:nth-child(1):after {
 left: 24px;
}
nav ul li:nth-child(2):after {
 left: 5px;
}
nav ul li:nth-child(3):after {
 left: 9px;
}
nav ul li:nth-child(4):after {
 left: 27px;
}
nav ul li:hover:after {
 border-bottom: 10px solid crimson;
}
.fp,
.fp:after {
 position: fixed;
 width: 100%;
 height: 100%;
 top: 55px;
 left: 0px;
 z-index: 0;
}
.fp li span {
 width: 100%;
 height: 100%;
 position: absolute;
 top: 0px;
 left: 0px;
 color: transparent;
 background-size: cover;
 background-position: 50% 50%;
 background-repeat: none;
 opacity: 0;
 z-index: 0;
 -webkit-backface-visibility: hidden;
 -webkit-animation: imageAnimation 36s linear infinite 0s;
 -moz-animation: imageAnimation 36s linear infinite 0s;
 -o-animation: imageAnimation 36s linear infinite 0s;
 -ms-animation: imageAnimation 36s linear infinite 0s;
 animation: imageAnimation 36s linear infinite 0s;
}
.fp li div {
 z-index: 1000;
 position: absolute;
 bottom: 30px;
 left: 0px;
 width: 100%;
 text-align: center;
 opacity: 0;
 color: #fff;
 -webkit-animation: titleAnimation 36s linear infinite 0s;
 -moz-animation: titleAnimation 36s linear infinite 0s;
 -o-animation: titleAnimation 36s linear infinite 0s;
 -ms-animation: titleAnimation 36s linear infinite 0s;
 animation: titleAnimation 36s linear infinite 0s;
}
.fp li div h3 {
 text-shadow: 1px 1px #000;
 font-size: 80px;
 padding: 0;
 line-height: 200px;
}
.fp li:nth-child(1) span {
 background-image: url("https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ");
}
.fp li:nth-child(2) span {
 background-image: url("https://images.unsplash.com/photo-1461749280684-dccba630e2f6?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ");
 -webkit-animation-delay: 6s;
 -moz-animation-delay: 6s;
 -o-animation-delay: 6s;
 -ms-animation-delay: 6s;
 animation-delay: 6s;
}
.fp li:nth-child(3) span {
 background-image: url("https://images.unsplash.com/photo-1522542550221-31fd19575a2d?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ");
 -webkit-animation-delay: 12s;
 -moz-animation-delay: 12s;
 -o-animation-delay: 12s;
 -ms-animation-delay: 12s;
 animation-delay: 12s;
}
.fp li:nth-child(4) span {
 background-image: url("https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ");
 -webkit-animation-delay: 18s;
 -moz-animation-delay: 18s;
 -o-animation-delay: 18s;
 -ms-animation-delay: 18s;
 animation-delay: 18s;
}
.fp li:nth-child(5) span {
 background-image: url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ");
 -webkit-animation-delay: 24s;
 -moz-animation-delay: 24s;
 -o-animation-delay: 24s;
 -ms-animation-delay: 24s;
 animation-delay: 24s;
}
.fp li:nth-child(6) span {
 background-image: url("https://images.unsplash.com/photo-1527427337751-fdca2f128ce5?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ");
 -webkit-animation-delay: 30s;
 -moz-animation-delay: 30s;
 -o-animation-delay: 30s;
 -ms-animation-delay: 30s;
 animation-delay: 30s;
}
.fp li:nth-child(2) div {
 -webkit-animation-delay: 6s;
 -moz-animation-delay: 6s;
 -o-animation-delay: 6s;
 -ms-animation-delay: 6s;
 animation-delay: 6s;
}
.fp li:nth-child(3) div {
 -webkit-animation-delay: 12s;
 -moz-animation-delay: 12s;
 -o-animation-delay: 12s;
 -ms-animation-delay: 12s;
 animation-delay: 12s;
}
.fp li:nth-child(4) div {
 -webkit-animation-delay: 18s;
 -moz-animation-delay: 18s;
 -o-animation-delay: 18s;
 -ms-animation-delay: 18s;
 animation-delay: 18s;
}
.fp li:nth-child(5) div {
 -webkit-animation-delay: 24s;
 -moz-animation-delay: 24s;
 -o-animation-delay: 24s;
 -ms-animation-delay: 24s;
 animation-delay: 24s;
}
.fp li:nth-child(6) div {
 -webkit-animation-delay: 30s;
 -moz-animation-delay: 30s;
 -o-animation-delay: 30s;
 -ms-animation-delay: 30s;
 animation-delay: 30s;
}
/* Animation for the slideshow images */
@-webkit-keyframes imageAnimation {
 0% {
  opacity: 0;
  -webkit-animation-timing-function: ease-in;
 }
 8% {
  opacity: 1;
  -webkit-animation-timing-function: ease-out;
 }
 17% {
  opacity: 1;
 }
 25% {
  opacity: 0;
 }
 100% {
  opacity: 0;
 }
}
@-moz-keyframes imageAnimation {
 0% {
  opacity: 0;
  -moz-animation-timing-function: ease-in;
 }
 8% {
  opacity: 1;
  -moz-animation-timing-function: ease-out;
 }
 17% {
  opacity: 1;
 }
 25% {
  opacity: 0;
 }
 100% {
  opacity: 0;
 }
}
@-o-keyframes imageAnimation {
 0% {
  opacity: 0;
  -o-animation-timing-function: ease-in;
 }
 8% {
  opacity: 1;
  -o-animation-timing-function: ease-out;
 }
 17% {
  opacity: 1;
 }
 25% {
  opacity: 0;
 }
 100% {
  opacity: 0;
 }
}
@-ms-keyframes imageAnimation {
 0% {
  opacity: 0;
  -ms-animation-timing-function: ease-in;
 }
 8% {
  opacity: 1;
  -ms-animation-timing-function: ease-out;
 }
 17% {
  opacity: 1;
 }
 25% {
  opacity: 0;
 }
 100% {
  opacity: 0;
 }
}
@keyframes imageAnimation {
 0% {
  opacity: 0;
  animation-timing-function: ease-in;
 }
 8% {
  opacity: 1;
  animation-timing-function: ease-out;
 }
 17% {
  opacity: 1;
 }
 25% {
  opacity: 0;
 }
 100% {
  opacity: 0;
 }
}
/* Animation for the title */
@-webkit-keyframes titleAnimation {
 0% {
  opacity: 0;
 }
 8% {
  opacity: 1;
 }
 17% {
  opacity: 1;
 }
 19% {
  opacity: 0;
 }
 100% {
  opacity: 0;
 }
}
@-moz-keyframes titleAnimation {
 0% {
  opacity: 0;
 }
 8% {
  opacity: 1;
 }
 17% {
  opacity: 1;
 }
 19% {
  opacity: 0;
 }
 100% {
  opacity: 0;
 }
}
@-o-keyframes titleAnimation {
 0% {
  opacity: 0;
 }
 8% {
  opacity: 1;
 }
 17% {
  opacity: 1;
 }
 19% {
  opacity: 0;
 }
 100% {
  opacity: 0;
 }
}
@-ms-keyframes titleAnimation {
 0% {
  opacity: 0;
 }
 8% {
  opacity: 1;
 }
 17% {
  opacity: 1;
 }
 19% {
  opacity: 0;
 }
 100% {
  opacity: 0;
 }
}
@keyframes titleAnimation {
 0% {
  opacity: 0;
 }
 8% {
  opacity: 1;
 }
 17% {
  opacity: 1;
 }
 19% {
  opacity: 0;
 }
 100% {
  opacity: 0;
 }
}
/* Show at least something when animations supported */
.no-cssanimations .fp li span {
 opacity: 1;
}

@media screen and (max-width: 1140px) {
 .fp li div h3 {
  font-size: 50px;
 }
}
@media screen and (max-width: 600px) {
 .fp li div h3 {
  font-size: 30px;
 }
}

              
            
!

JS

              
                //vanilla js
(function(){
	'use strict';
	setTimeout(function(){
	const logo = document.getElementById('logo');
		logo.classList.add('active');
	}, 3000);

}());
              
            
!
999px

Console