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

              
                <html>
    <head>
        <title>Humanity</title>
        <link rel="stylesheet" href="./css/main.css">
    </head>
    
<body>
<div class="overcontainer"></div>
<div class="container">

    <nav class="menu">
                <a class="menu-item" href="https://www.facebook.com/MixRadu" target="_blank">Facebook</a>
                <a class="menu-item" href="https://www.freecodecamp.org/oliuradu" target="_blank">freeCodeCamp</a>
                <a class="menu-item" href="https://codepen.io/oliuradu/" target="_blank">CODEPEN</a>
                <a class="menu-item menu-special" href="https://4ocean.com/collections/all-products" target="_blank">Donate</a>
    </nav>
              
    <div class="overimage"></div>
    <div class="top">

            <div class="center-h">
                <div class="title"><h1>EARTH</h1></div>
                <div class="subtitle"><h2>4.54 billion years ago - EGO</h2></div>
            </div>
        
    </div>
    
    <div class="bottom">
<div id="main">
  <div class="hide"><h1 id="title">Earth</h1>
  <div>The planet who dosen't likes you!</div></div>
  <div id="img-div">
    <img id="image" src="https://drive.google.com/uc?id=1QTZmnHqX7dyu1C7ybvEaDvC14HUZmuCt" alt="Earth planet">
    <div class="hide" id="img-caption">
      Modern art of Earth
    </div>
  </div>
  <div id="tribute-info">
    <ul>
      <h3 id="headline">Here's the most important of earth events:</h3>
      <li><strong>3500 BC</strong> - Invention of the wheel and plough in Mesopotamia (present-day Iraq); invention of the sail in Egypt: three fundamental inventions for trade, agriculture and exploration.</li>
      <li><strong>3200 BC</strong> - Invention of writing in Mesopotamia: the means to record and understand human history.</li>
      <li><strong>1600 BC</strong> - Modern alphabet invented: the essential means of communication of complex concepts and culture.</li>
      <li><strong>753 BC</strong> - Foundation of Rome: the Roman Empire is a pillar of the modern age, producing ideas on justice, law, engineering and warfare.</li>
      <li><strong>1959</strong> - Invention of the silicon chip is the major technical invention of the past century, making possible the computer age.</li>
      <li><strong>1994</strong> - Oliu Radu was born.</li>
    </ul>
    <blockquote>
      <p>“Earth provides enough to satisfy every man's needs, but not every man's greed.” </p>
      <div>― Mahatma Gandhi</div>
    </blockquote>
    <h3><a id="tribute-link" href="https://sites.google.com/site/nccmnhistory/the-50-key-dates-of-world-history" target="_blank">READ MORE</a></h3>
  </div>
</div> 
     </div>
     
     <div class="footer">Made with love by <a href="https://www.facebook.com/MixRadu">Oliu Radu</a></div>

</div>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</body>
    
</html>
              
            
!

CSS

              
                @media only screen and (max-width: 600px) {
  
    @keyframes beat{
        to { transform: scale(1.1);}
    }
    
    @keyframes rotate{
        to { transform: rotate(90deg)};
    }
    
    @keyframes undercover {
        0% {
        font-size: 10px;
        position: relative;
        z-index: 99;
        top: -100px;
        margin-top: 100px;
        }
        50%{
            font-size: 20px;
            position: relative;
            top: 100px;
            z-index: 1001;
            margin-top: 100px;
        }
        100% {
            font-size: 30px;
            z-index: 1001;
            position: relative;
            top: 0px;
            color: #555;
            margin-top: 100px;
        }
    }
}

@media only screen and (min-width: 600px) {
    @keyframes beat{
        to { transform: scale(1.1); }
    }
    
    @keyframes rotate{
        to { transform: rotate(90deg)};
    }
    
    @keyframes undercover {
        0% {
        font-size: 30px;
        position: relative;
        z-index: 99;
        top: -100px;
        }
        50%{
            font-size: 40px;
            position: relative;
            top: 250px;
            z-index: 1001;
        }
        100% {
            font-size: 60px;
            z-index: 1001;
            position: relative;
            top: 0px;
            color: white;
        }
    }
}


body {
    margin: 0px;
    font-family: monospace;
}



/* MENU */

.menu {
    z-index: 1001;
  padding: 0;
  margin: 0;
  list-style: none;
  
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  
  -webkit-flex-flow: row wrap;
  justify-content: flex-end;
}

.menu-item {
    padding: 5px 15px;
    margin: 15px;
    height: 50px;
    box-sizing: border-box;
    font-family: monospace;
    line-height: 36px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    flex-basis: 10%;
    text-align: center;
    text-decoration: none;
}

.menu-special {
    color: #555;
    background: #fff;
    border-radius: 2px;
    transition: 300ms;
}

.menu-item:hover{
    transform: scale(1.1);
}
.menu-special:hover{
    transform: scale(1);
    background: #3873bb;
    color: #fff;
}
/* Container */
.container {
    height: 100%;
    background: #fff url("https://drive.google.com/uc?id=1Q8mTqrfV-ZYA2IXuIfWQwh1Z1-QG_ks8");
    background-size: 100%;
    display: flex;
    flex-flow: column;
    background-repeat: no-repeat;
}
.center-h {
    display: flex;
    margin: 15%;
    flex-flow: column;
    justify-content: space-around;
}
.top {
    display: flex;
    justify-content: center;
}
.overimage{
    background: transparent url("https://drive.google.com/uc?id=10M-Fc7vwIjh63_QpgoLejNNcXRynB5Th");
    background-size: 100%;
    position: absolute;
    width: 100%;
    z-index: 1000;
    background-repeat: no-repeat;
    height: 100%;
}
.title {
    text-align: center;
    font-size: 50px;
    letter-spacing: 10px;
    font-family: monospace;
    animation-name: undercover;
    animation-duration: 4s;
    transition-timing-function: cubic-bezier(.17,.67,.27,.91);
    animation-fill-mode: forwards;
}
.title h1{
    margin: 0px;
}

.subtitle {
    z-index: 1000;
}
.subtitle h2 {
    margin: 0 auto;
    padding: 0px 12px;
    font-family: monospace;
    color: #fff;
    text-align: center;
    letter-spacing: 4px;
    border-radius: 2px;
    background: #0000007a;
}
.bottom{
    padding: 0 45px;
    z-index: 1001;
    margin-top: 10%;
    justify-content: center;
}

#img-div {
    width: 100%;
}
#img-div img{
    width: 250px;
    max-width: 100%; 
    display: block; 
    height: auto;
    margin: auto;
    animation: beat 1s infinite alternate;
}

.hide {
    display: none;
}

li strong{
    background: #3d4547;
    border-radius: 2px;
    margin: 5px 0px;
    color: #fff;
    width: 80px;
    padding: 5px;
    text-align: center;
    display: inline-block;
}
#tribute-info ul{
    list-style-type: none;
}
#tribute-info h3:last-child{
   padding-left: 40px; 
}
#tribute-info {
    margin: 50px 0px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
#headline {
    border-radius: 2px;
    margin: 5px 0px;
    padding: 5px;
    text-align: center;
    display: inline-block;
}

h3 a{
    background: #1b72f5;
    padding: 5px 15px;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

.footer{
    width: 100%;
    line-height: 50px;
    height: 50px;
    text-align: center;
    display: block;
    background: #e7e2e9;
    min-height: 50px;
}
.footer a{
    background: #1b72f5;
    padding: 2px 5px;
    border-radius: 2px;
    color: #fff;
    text-decoration: none;
}
              
            
!

JS

              
                
              
            
!
999px

Console