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

              
                <body>
  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
  <nav id="navbar">
    <ul>
      <li><a class="nav-link" href="#"><strong>Home</strong></a></li>
      <li><a class="nav-link" href="#"><strong>Projects</strong></a></li>
      <li><a class="nav-link" href="#"><strong>About</strong></a></li>
      <li><a class="nav-link" href="#"><strong>Contact</strong></a></li>
    </ul>
  </nav>
  
  <header class="header">
    <section id="welcome-section">
    <h1><strong>Xaris</strong></h1>
  
  <!-- Typewriter Affect HTML -->
  <h3>
    <a href="" class="typewrite" data-period="2000" data-type='["Computer Programmer", "Web Designer"]'>
      <span class="wrap"></span>
    </a>
  </h3>
 </section>
</header>
  
  <section id="projects">
    <h2 class="projects-section-header">Some of My Projects</h2>
    
  <!-- Start of Media Cards-->
   <section class="project-tile">
    <div class="card">
      <div class="card__inner">
        <div class="card__face card__face--front">
          <h2>Tribute Page</h2>
        </div>
        <div class="card__face card__face--back">
          <div class="card__content">
            <div class="card__header">
              <img src="https://miro.medium.com/max/1200/1*gH4YEZLDwqkDyJ2YngAl5w.jpeg" alt="" class="ff" />
              <h3>Winston Churchill Tribute Page</h3>
              <div class="card__body">
                <p>A carefully crafted tribute page dedicated to the life of Winston Churchill. Also one of my first projects.</p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
   </section>
  
    <section class="project-tile">
    <div class="card">
      <div class="card__inner">
        <div class="card__face card__face--front">
          <h2>Landing Page</h2>
        </div>
        <div class="card__face card__face--back">
          <div class="card__content">
            <div class="card__header">
              <img src="https://miro.medium.com/max/1200/1*gH4YEZLDwqkDyJ2YngAl5w.jpeg" alt="" class="ff" />
              <h3>Rooftop Photography Landing Page</h3>
              <div class="card__body">
                <p>The premeire landing page for an upcoming photography and vdieography studio. Visit this project <a target="blank_" href="https://codepen.io/NeonFoxX/full/OJNBNQZ">here</a></p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
   </section>
  
 <section class="project-tile">
  <div class=" card">
    <div class="card__inner">
      <div class="card__face card__face--front">
        <h2>Technical Doc</h2>
      </div>
      <div class="card__face card__face--back">
        <div class="card__content">
          <div class="card__header">
            <img src="" alt="" class="ff"/>
            <h3>Initial Lights Kit Manual</h3>
            <div class="card__body">
              <p>A minimalist document for a minimalist aesthetic.</p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>
 </section>
  
  <section class="about-section">
    <h2>My Roots</h2>
    <p>Xaris is a web designer working out of a small university town in central Illinois,</p>
    <p>with a focus on currating websites specific to the customers desires.</p>
  </section>
  
  <section id="contact" class="contact-section">
    <div class="contact-section-header">
      <h2>Contact Me!</h2>
    </div>
    <div>
      <a id="profile-link" href="" target="_blank" class="contact-details"> <img src="https://awhikax.com/assets/img/icon/discord.png" alt="discord-icon"></a></div>
    
    <div>
      <a id="profile-link" href="" target="_blank" class="contact-details"> <img src="" alt="gmail-icon"></a></div>
    
    <div>
      <a id="profile-link" href="https://www.freecodecamp.org/learn" target="_blank" class="contact-details"> <img clas="fcc-logo" src="" alt="freecodecamp-icon"></a></div>
  </section>
    
    <footer>
      <p>**This is a fake portfolio page to fulfill the last freeCodeCamp challenge for HTML and Web Design.</p>
      <p>
        &copy; Created By Crow
      </p>
    </footer>
   <script src="main.js"></script>
</body>
              
            
!

CSS

              
                body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  background-image: url('https://www.wallpapertip.com/wmimgs/83-838381_html-wallpaper-background-code-coding-tags.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 100%;
}

#navbar {
  text-align: center;
  float: right;
  position: fixed;
  background-color: #242526;
  opacity: 0.4;
  filter: alpha(opacity=40);
  width: 100%;
  top: 0px;
  overflow: hidden;
  height: 10%;
}
li {
  list-style: none;
}
.nav-link {
  float: right;
  display: block;
  text-decoration: none;
  color: #fff;
  margin-right: 30px;
}
nav > ul {
  float: right;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}
nav > li {
  padding-bottom: 5px;
}

.header {
  text-align: center;
  height: 200px;
  justify-content: center;
  padding-top: 5em;
  color: white;
}
#welcome-section {
  height: 100vh;
}

/* Typewriter CSS */
* {
  color: #fff;
  text-decoration: none;
  text-align: center;
}

.projects-section-header {
  padding-top: 0.5em;
}
/* Media Card CSS */
:root {
  --primary: #fff;
  --secondary: #808080;
  --dark: #212121;
  --light: #f3f3f3;
}
.card {
  margin: 100px 70px 0;
  width: 300px;
  height: 400px;
  perspective: 600px;
  float: left;
}
.card__inner {
  width: 100%;
  height: 100%;
  transition: transform 1s;
  transform-style: preserve-3d;
  cursor: pointer;
  position: relative;
}
.card__inner.is-flipped {
  transform: rotateY(180deg);
}
.card__face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0px 3px 18px 3px rgba(0, 0, 0, 0.2);
}
.card__face--front {
  background-image: linear-gradient(to bottom right, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__face--front h2 {
  color: #fff;
  font-size: 32px;
}
.card__face--back {
  background-color: var(--light);
  transform: rotateY(180deg);
}
.card__content {
  height: 100%;
  width: 100%;
}
.card__header {
  position: relative;
  padding: 30px 30px 40px;
}
.card__header:after {
  content:'';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  border-radius: 0 0 50% 0;
  background-image: linear-gradient(to bottom left, var(--primary) 10%, var(--secondary) 115%);
}
.ff {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background-color: #fff;
  border: 5px solid #fff;
  object-fit: cover;
}
.card__header h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}
.card__body {
  padding: 0px;
  height: 100%;
  width: 100%;
}
.card__body p {
  color: var(--dark);
  font-size: 20px;
  line-height: 1.5;
}

/*Roots*/
.about-section {
  padding-bottom: 0.4em;
  padding-top: 0.4em;
}

/* Contact */
.contact-section-header {
  display: flex;
  justify-content: space-around;
  padding: 0.5em;
}
#profile-link {
  display: flex;
  justify-content: space-around;
  padding: 0.5em;
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
  text-align: justify;
}
.contact-details {
  transition: transform 0.3s ease-out;
}
.contact-details:hover {
  transform: translateY(8px);
}


/* Footer */
footer {
  display: flex;
  justify-content: space-evenly;
  padding: 2rem;
  border-top: 4px solid;
}
@media (max-width: 28.75em) {
  footer {
    flex-direction: column;
    text-align: center;
  }
}
              
            
!

JS

              
                var TxtType = function(el, toRotate, period) {
        this.toRotate = toRotate;
        this.el = el;
        this.loopNum = 0;
        this.period = parseInt(period, 10) || 2000;
        this.txt = '';
        this.tick();
        this.isDeleting = false;
    };

    TxtType.prototype.tick = function() {
        var i = this.loopNum % this.toRotate.length;
        var fullTxt = this.toRotate[i];

        if (this.isDeleting) {
        this.txt = fullTxt.substring(0, this.txt.length - 1);
        } else {
        this.txt = fullTxt.substring(0, this.txt.length + 1);
        }

        this.el.innerHTML = '<span class="wrap">'+this.txt+'</span>';

        var that = this;
        var delta = 200 - Math.random() * 100;

        if (this.isDeleting) { delta /= 2; }

        if (!this.isDeleting && this.txt === fullTxt) {
        delta = this.period;
        this.isDeleting = true;
        } else if (this.isDeleting && this.txt === '') {
        this.isDeleting = false;
        this.loopNum++;
        delta = 500;
        }

        setTimeout(function() {
        that.tick();
        }, delta);
    };

    window.onload = function() {
        var elements = document.getElementsByClassName('typewrite');
        for (var i=0; i<elements.length; i++) {
            var toRotate = elements[i].getAttribute('data-type');
            var period = elements[i].getAttribute('data-period');
            if (toRotate) {
              new TxtType(elements[i], JSON.parse(toRotate), period);
            }
        }
        // INJECT CSS
        var css = document.createElement("style");
        css.type = "text/css";
        css.innerHTML = ".typewrite > .wrap { border-right: 0.08em solid #fff}";
        document.body.appendChild(css);
    };

const card = document.querySelector('.card__inner');
card.addEventListener('click', function () {
  card.classList.toggle('is-flipped');
});
              
            
!
999px

Console