Pen Settings



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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


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


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.


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.


                <a href="" target="_blank" data-keyframers-credit style="background-color: #000; color: #FFF; border-radius: 2em; padding: 0em 1.5em;"></a>
<script src=""></script>

  <h1>Revealing Footer with position: sticky</h1>


  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent bibendum, lorem vel tincidunt imperdiet, nibh elit laoreet felis, a bibendum nisl tortor non orci. Donec pretium fermentum felis, quis aliquet est rutrum ut. Integer quis massa ut lacus viverra pharetra in eu lacus. Aliquam tempus odio adipiscing diam pellentesque rhoncus. Curabitur a bibendum est. Mauris vehicula cursus risus id luctus. Curabitur accumsan venenatis nibh, non egestas ipsum vulputate ac. Vivamus consectetur dolor sit amet enim aliquet eu scelerisque ipsum hendrerit. Donec lobortis suscipit vestibulum. Nullam luctus pellentesque risus in ullamcorper. Nam neque nunc, mattis vitae ornare ut, feugiat a erat. Ut tempus iaculis augue vel pellentesque.</p>

  <img src='' alt='' />

  <p>Vestibulum nunc massa, gravida quis porta nec, feugiat id metus. Nunc ac arcu dolor, quis vestibulum leo. Cras viverra mollis ipsum, non rhoncus lectus aliquam et. Morbi faucibus purus sit amet lacus aliquet elementum. Donec sit amet posuere enim. Cras in eros id tortor fringilla ultricies. Mauris faucibus ullamcorper velit, pulvinar varius odio eleifend eu. Quisque id odio metus. Morbi adipiscing ultricies posuere. Pellentesque elementum porttitor eros in molestie. Maecenas ut leo quis nisi tempor tincidunt.</p>

  <p>Donec nunc ligula, vulputate quis mollis eu, interdum quis libero. Donec nulla ante, facilisis sit amet vulputate at, tincidunt a velit. Maecenas vestibulum, nulla sed tincidunt viverra, lorem turpis aliquam urna, ut pretium orci purus consequat augue. Etiam a enim orci, vitae pulvinar odio. In elit urna, tincidunt a pellentesque et, scelerisque at nibh. Sed nec est sapien. Aliquam ullamcorper eros eu quam ultrices vel faucibus eros interdum. Etiam mattis eleifend sapien, eu iaculis massa feugiat sed. Aliquam erat volutpat. Vivamus facilisis ultricies eros, a pretium purus mollis id. Sed dapibus elit ut neque rutrum dignissim. Nulla eros nisl, venenatis quis rhoncus sit amet, molestie nec nisl. Pellentesque vel neque sapien, et sagittis nulla.</p>

  <img src='' alt='' />

  <p>Aliquam eu iaculis mauris. Etiam arcu lectus, imperdiet sit amet volutpat vitae, commodo sed nibh. Fusce faucibus tempor cursus. Donec ut ligula tortor. Maecenas malesuada, diam vitae pharetra dictum, erat ante iaculis risus, sed sollicitudin nisl nisl vel metus. Nulla libero augue, convallis nec luctus id, iaculis nec urna. Cras vitae mi ut augue ultricies tempus.</p>

  <p>Vestibulum euismod vehicula sollicitudin. Duis nibh justo, rhoncus ac ullamcorper nec, rutrum sit amet leo. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum varius posuere nisi sed aliquet. Etiam dolor nisi, placerat vel congue tempus, posuere sed erat. Phasellus turpis eros, molestie sed consequat in, pretium at erat. In sed faucibus metus. Vestibulum fermentum libero nec eros fermentum dapibus. Duis nec libero eros. Pellentesque magna ligula, sagittis dictum fringilla at, posuere porttitor sem. Donec aliquam, ipsum quis pulvinar dapibus, augue sem viverra sapien, nec tempus odio nulla ac metus. Nunc ut augue mi, nec consequat urna.</p>



  <a href="">
    <svg class="kf_logo" viewBox="0 0 122 68" xmlns="" fill-rule="evenodd" clip-rule="evenodd"
      stroke-linecap="round" stroke-miterlimit="1.5" width="200">
        d="M33.807 6.788L6.654 33.941l27.153 27.153L60.96 33.941 33.807 6.788zM88.113 6.788L60.96 33.941l27.153 27.153 27.153-27.153L88.113 6.788z"
        fill="none" stroke="#FFB909" stroke-width="7.2" />
      <path d="M60.96 0L27.019 33.941 60.96 67.882l33.941-33.941L60.96 0z" fill="#FFB909" />
      <path d="M70.56 43.541l-9.6-9.6 9.6-9.6M55.68 21.941V46.11" fill="none" stroke="#2B2E31" stroke-width="7.2"
        stroke-linecap="butt" />



                /* Added header in here to prevent any overlap at small screen sizes */
main {
  position: relative;
  z-index: 1;

main {
  background: white;
  box-shadow: 0 2rem 4rem #000;
  min-height: 100vh; /* Min-height to ensure everyone gets the scroll reveal */

footer {
  position: sticky;
  bottom: 0;

/* ---------------------------------- */
/* Stylistic Choices */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

html {
  font: 16px/1.4 "Heebo", system-ui, sans-serif;
  color: #2b2e31;

header {
  padding: 15vmin;
  background: #2b2e31;
  background-image: url(;
  background-size: cover;
  background-position: center center;
  background-blend-mode: soft-light;
  color: #fff;
  text-align: center;
  border-bottom: thick double #fff;

header h1 {
  font-family: inherit;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.05em;
  max-width: 15em;
  margin: 0 auto;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);

main {
  padding: 2rem;
  clear: both;

main p {
  max-width: 30em;
  margin: 0 auto 1rem;

main img {
  float: right;
  max-width: 40%;
  height: auto;
  margin: 1rem 2rem 2rem;
  border: thick double #2b2e31;
  padding: 3px;

main img:nth-of-type(even) {
  float: left;

footer {
  padding: 15vmin 2rem;
  background: #2b2e31;
  background-image: url(;
  background-size: cover;
  background-position: center 60%;
  background-blend-mode: soft-light;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  font-family: monospace;

.kf_logo {
  width: 160px;
  margin: 0 auto 1rem;

footer a {
  color: inherit;
  display: block;