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

              
                <div class="container">

  <!-- Card Start -->
  <div id="card-div" class="container card bg-light mt-5">
    <h1 class="mt-4 text-center">Ned Stark</h1>
    <h4 class="text-center">"Winter is Coming"</h4>
    
    <!-- Img/Caption Start -->
    <div class="container">
      <div class="row">
        <figure class="mx-auto">
          <div id="snow-container">
            <img class="img-fluid" src="https://www.dropbox.com/s/19avicxse6dk6wo/300px-Sean_Bean_as_Eddard_Stark.png?raw=1" alt="Ned Stark holding the Stark family sword, Ice.">   
            <div id="snow"></div>
          </div>
          <figcaption class="figure-caption text-center">"The man who passes the sentence should swing the sword." -Eddard Stark</figcaption
        </figure>
      </div>      
    </div> <!-- Img/Caption End -->

    <!-- Tribute Bio Start -->
    <div class="container mt-3 mb-4">
      <div class="row">
        <div class="col-10 mx-auto"
          <p>    
          <a href="http://gameofthrones.wikia.com/wiki/Eddard_Stark" target="_blank"> Eddard Stark</a>, also known as Ned Stark, was the head of House Stark, the Lord of Winterfell, Lord Paramount and Warden of the North, and later Hand of the King to King Robert I Baratheon. He was the older brother of Benjen, Lyanna and the younger brother of Brandon Stark. He is the father of Robb, Sansa, Arya, Bran and Rickon by his wife, Catelyn Tully, and uncle of Jon Snow, who he raised as his bastard son. He was a dedicated husband and father, a loyal friend and an honorable lord.
        </p>   
        <p> 
          Eddard's execution and revealing the illegitimacy of Cersei's children was the spark of the War of the Five Kings between Joffrey Baratheon, Robb, Renly Baratheon, Stannis Baratheon and Balon Greyjoy, being posthumously responsible for the involvement of four of the kings in this war.
        </p>
        </div>
      </div>
    </div> <!-- Tribute Bio End -->
        
  </div> <!-- Card End --> 
      
<!-- Footer Start -->
  
<footer class="container-fluid blue text-center mt-3">
    <p>
      Coded by Matthew Cranford
    </p>   
</footer> <!-- Footer End -->
 
</div>
              
            
!

CSS

              
                /* Base */

body {
  font-family: "Roboto", sans-serif;
}

h1 {
  color: SlateGrey
}

figcaption {
  background-color: white;
}

/* IDs */

#snow-container {
  position: relative;
  text-align: center;
}

/* Classes */

/* Snow CSS */

#snow:hover {
  
  animation-play-state: running;
}

#snow {
	background: none;
	font-family: Androgyne; 
 	background-image: url('https://www.dropbox.com/s/akl56e9np6li1q7/snow1.png?raw=1'), url('https://www.dropbox.com/s/kf9r9n6tf3kbadk/snow2.png?raw=1'), url('https://www.dropbox.com/s/jdu12r28nvb7xha/snow3.png?raw=1');
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 1;
	-webkit-animation: snow 10s linear infinite;
	-moz-animation: snow 10s linear infinite;
	-ms-animation: snow 10s linear infinite;
	animation: snow 10s linear infinite;  
}
@keyframes snow {
  0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
  50% {background-position: 500px 500px, 100px 200px, -100px 150px;}
  100% {background-position: 500px 1000px, 200px 400px, -100px 300px;}
}
@-moz-keyframes snow {
  0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
  50% {background-position: 500px 500px, 100px 200px, -100px 150px;}
  100% {background-position: 400px 1000px, 200px 400px, 100px 300px;}
}
@-webkit-keyframes snow {
  0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
  50% {background-position: 500px 500px, 100px 200px, -100px 150px;}
  100% {background-position: 500px 1000px, 200px 400px, -100px 300px;}
}
@-ms-keyframes snow {
  0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
  50% {background-position: 500px 500px, 100px 200px, -100px 150px;}
  100% {background-position: 500px 1000px, 200px 400px, -100px 300px;}
}	



              
            
!

JS

              
                
              
            
!
999px

Console