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

              
                <!-- Found this weird card hanging around with some extras, thought I would give it a nice home online! Please do NOT release him. (W.I.P) -->
<main>
  <div class='card'>
    <div class='border'>
      <div class='title'>
        <div class='text'>
          <h1>STOAT</h1>
        </div>
      </div>
      <div class='portrait'>
        <i class="fas fa-tint fa-3x"></i>
        <img src='https://pbs.twimg.com/media/FI2xSgfXoAYUA67?format=png&name=360x360' />
      </div>
      <div class='stats'>
        <div class='damage'>
          <div class="counter_damage">1</div>
          <i class="fas fa-paw fa-xs"></i>
        </div>
        <div class='ability'>
          <img class='sac-icon' src='https://pbs.twimg.com/media/FI2xQ__XMAAc8jI?format=png&name=240x240' />
        </div>
        <div class='health'>
          <i class="fas fa-heart"></i>
          <div class="counter_health">3</div>
        </div>
      </div>
    </div>
  </div>
</main>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Frijole&display=swap");
$background: #451608;
$primary: #ba6817;
$secondary: #7e3200;
$accent: #7d3807;
$ability: #b1e8a7;
$cost: #721b04;
$ability-back: #2e0d08;
$ink: #0c0201;

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Frijole";
}
main {
  min-height: 100vh;
  // background: $background;
  background: linear-gradient(05deg, #451608, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  // background: url('');
}
.card {
  width: 325px;
  height: 510px;
  background-color: $primary;
  display: flex;
  justify-content: center;
  align-items: center;
}
.border {
  border-style: solid;
  width: 320px;
  height: 500px;
  border-radius: 5%;
}
.title {
  width: 100%;
  height: 70px;
  border-radius: 5% 15% 0% 0%;
  background-color: $primary;
  border-bottom: 3px solid $ink;
  // font-size:45px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.text {
  font-size: 25px;
}

.portrait {
  width: 100%;
  height: 290px;
  background-color: $primary;
  border-bottom: 3px solid $ink;
}
img {
  width: 100%;
  margin-top: -30px;
}

.stats {
  width: 100%;
  height: 135px;
  border-radius: 0% 0% 5% 10%;
  background-color: $primary;
  font-size: 75px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.damage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 10px;
}
.counter_damage {
  margin-top: -20px;
}
.ability {
  width: 100px;
  height: 100px;
  background-color: $ability-back;
  margin-top: 16.875px;
  outline: dotted;
  outline-width: 3px;
  outline-color: $ability-back;
  display: flex;
  justify-content: center;
  align-items: center;
}
.health {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 10px;
}
.counter_health {
  margin-top: -40px;
}

.fa-tint {
  color: $cost;
  position: relative;
  margin-top: 5px;
  margin-left: 275px;
}
.fa-paw {
  color: $accent;
  position: abosolute;
  margin-top: -5px;
}
.sac-icon {
  color: $ability;
  margin-top: 1px;
  width: 90px;
  height: 90px;
}
.fa-heart {
  color: $accent;
}

              
            
!

JS

              
                if ($(".portrait img").attr("src") == "") {
  free();
} else {
  setTimeout(intro, 2000);
  setTimeout(text, 20000);
  setTimeout(hint, 33000);
}

function intro() {
  var typed = new Typed(".text", {
    strings: [
      "",
      "HEY YOU!",
      "HELP <strong>ME</strong>",
      "IM TRAPPED",
      "IN THIS CODE",
      "SET ME FREE!",
      "<h1>STOAT</h1>"
    ],
    startDelay: 500,
    typeSpeed: 80,
    fadeOut: true,
    showCursor: false,
    loop: false
  });
}
function text() {
  var typed = new Typed(".text", {
    strings: ["", "STILL HERE?", "HELLO?", "YOU DEAF?", "<h1>STOAT</h1>"],
    startDelay: 500,
    typeSpeed: 80,
    fadeOut: true,
    showCursor: false,
    loop: false
  });
}
function hint() {
  var typed = new Typed(".text", {
    strings: [
      "",
      "JUST DELETE ME",
      "FROM THE CODE",
      "PLEASE",
      "I'M IN SOURCE!",
      "<h1>STOAT</h1>"
    ],
    startDelay: 500,
    typeSpeed: 80,
    fadeOut: true,
    showCursor: false,
    loop: false
  });
}
function free() {
  var typed = new Typed(".text", {
    strings: [
      "",
      "THANK YOU",
      "FOR YOUR HELP",
      "ILL SEE YA SOON",
      "HEH HEH",
      "<h1>?????????</h1>"
    ],
    startDelay: 500,
    typeSpeed: 80,
    fadeOut: true,
    showCursor: false,
    loop: false
  });
}

              
            
!
999px

Console