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

              
                <!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="style.css" type="text/css">
  <script defer src="app.js"></script>
</head>

<body>
  <section class="darkestPeach">
    <div class="hidden">
      <img src="https://gifimage.net/wp-content/uploads/2017/10/dancing-cat-gif.gif">
    </div>
    <div class="hidden">
      <h1>Happy Birthday Unicorn!</h1>
      <p>Even though i haven't seen your face in centuries. I hope you like this :D</p>
    </div>
  </section>
  <section class="darkPeach">
    <div class="hidden">
      <h1>Yoshi!</h1>
      <p>You're a pretty cool person who plays on the nintendo!</p>
      <br>
      <h1>Mmm Chezburger</h1>
      <p>You like playing roblox! Best free game on Earth! We should play a game one day :o</p>
    </div>
    <img class="hidden" src="https://media.discordapp.net/attachments/701125768675065917/1030316445445398538/2022-10-13_9.png?width=1246&height=701" class="awards">
  </section>
  <section class="peach">
    <div class="hidden">
      <h1>You're an amazing freind!</h1>
      <p>
        To tell the truth, i didn't think i would be able to make this on time, but i tried my best to give you a showage
        of appreciation. Even though we don't talk a lot you're still my freind and i just wanted to show you that it's
        not just your family who cares about you. I also made this to help improve my coding skills since i made this
        website without any apps or extensions, it's just all code! I don't know a lot about you so i just put some
        random images and an aeshetic image at the bottom. I hope you have an amazing year and uhh I'll make something
        even better for you next year! (p.s the section above is supposed to be all the hobbies that you master at, i
        should've asked more questions to put more hobbies there)
      </p>
    </div>
    <img class="hidden" src="https://media.tenor.com/GdJRGf60YN4AAAAC/hugs-sending-virtual-hugs.gif">
  </section>
  <section class="lightPeach">
    <div class="hidden">
      <h1>One word, <span>Fantastic</span></h1>
      <p>That's the word i would use to describe you. Even though i don't know a lot about you it makes me wonderous.
        Anways your teasy ego is amazing, even though you don't text a lot you text more that Prishaa or the others.
        There isn't really anything you should change about you (except for your response times on discord) so keep
        being you the that's how you met most of us :).
      </p>
    </div>
    <img class="hidden" src="https://media.discordapp.net/attachments/701125768675065917/1030315397121052762/2022-10-13_7.png?width=1246&height=701">
  </section>
  <section class="final">
    <h1 class="move">Thank You!</h1>
  </section>
</body>

</html>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Dancing+Script&family=Lobster&family=Lora:ital@0;1&family=Poppins:wght@300;400&display=swap");

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
}

body {
  margin: 0;
  background-color: #f8ad9d;
}

section {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 5rem;
  min-height: 500px;
}

img {
  width: 300px;
  border-radius: 10px;
  margin-top: 50px;
  transition: 0.8s ease;
}

img:hover {
  margin-bottom: 20px;
  box-shadow: 12px 12px #07072c;
}

.darkestPeach {
  background-color: #f08080;
  font-family: "Poppins", sans-serif;
  color: antiquewhite;
}

.darkPeach {
  background-color: #f4978e;
}

.Peach {
  background-color: #f8ad9d;
  display: grid;
  grid-template-columns: 40% auto;
}

.lightPeach {
  background-color: #f7dba7;
  color: White;
  font-family: "Poppins", sans-serif;
}

.awards:hover {
  margin-bottom: 20px;
  box-shadow: 12px 12px wheat;
}

.gray {
  font-family: "Poppins", sans-serif;
}

.whitePeach {
  background-color: antiquewhite;
  display: grid;
  grid-template-columns: 50% 50%;
  font-family: "Poppins", sans-serif;
  word-wrap: break-word;
  justify-content: space-between;
  align-content: center;
}

.hidden {
  opacity: 0;
  transition: all 1s;
  filter: opacity(0);
  transform: translateX(-100%);
}

.show {
  opacity: 1;
  filter: opacity(100%);
  transform: translateX(0);
}

@media (prefers-reduced-motion) {
  .hidden {
    transition: none;
  }
}

span {
  font-family: "Lobster", cursive;
}

.final {
  gap: 1rem;
  font-family: "Dancing Script", cursive;
  background-image: url("https://media.discordapp.net/attachments/701125768675065917/1030317951141818398/2022-10-13_10.png?width=1246&height=701");
}

.move {
  margin-right: 1000px;
}

              
            
!

JS

              
                const hiddenElements = document.querySelectorAll(".hidden");

const observer = new IntersectionObserver((entries) => {
  entries.forEach((entry) => {
    console.log(entry);
    if (entry.isIntersecting) {
      entry.target.classList.add("show");
    } else {
      entry.target.classList.remove("show");
    }
  });
});

hiddenElements.forEach((el) => observer.observe(el));

              
            
!
999px

Console