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

              
                <h4>Built with 💜 by <a href="https://twitter.com/alyssaxuu">Alyssa X</a></h4>
<div id="section">
  <h3>PRODUCTS 💄</h3>
  <hr>
<div class="item">
<h1>Scaleboot</h1>
  <h2>Service to validate minimum viable products & launch them successfully</h2>
<img src="https://cdn.dribbble.com/users/886569/screenshots/5459050/ezgif.com-optimize__10_.gif">
</div>
<div class="item">
<h1>Exposure Cards</h1>
  <h2>Get more traffic to your content & find underrated websites</h2>
<img src="https://cdn.dribbble.com/users/886569/screenshots/4392430/woah.gif">
</div>
<div class="item">
<h1>Newsletty</h1>
  <h2>Discover awesome newsletters & get more subscribers to yours</h2>
<img src="https://cdn.dribbble.com/users/886569/screenshots/6071695/ezgif.com-optimize__14_.gif">
</div>
</div>
              
            
!

CSS

              
                body {
  background-color: #000;
}
.item {
  display: flex;
  justify-content: left;
  align-items: left;
  margin-left: 50px;
  margin-top: 50px;
  height: 100px;
}
h1 {
  color: #FFF;
  font-family: sans-serif;
  position: absolute;
  z-index: 99999;
  cursor: pointer;
  transition: all .3s cubic-bezier(.05,.03,.35,1);
}
h2 {
  position: absolute;
  color: #FFF;
  font-family: sans-serif;
  font-weight: normal!important;
  font-size: 15px;
  opacity: .5;
  margin-top: 38px;
  margin-left: 350px;
}
h3 {
  font-family: "Montserrat";
  color: rgba(255,255,255,.5);
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: normal;
  margin-left: 50px;
  margin-top: 50px;
}
h4 {
  color: rgba(255,255,255,.5);
  font-family: sans-serif;
  margin-right: 50px;
  text-align: right;
  font-weight: normal;
  font-size: 13px;
}
h4 a {
  text-decoration: none;
  color: rgba(255,255,255,.5);
  font-weight: bold;
  position: relative;
  display: inline-block;
  transition: all .3s cubic-bezier(.05,.03,.35,1);
}
/* Underline effect on personal link */
h4 a:after {
  content: "";
	position: absolute;
	height: 1px;
	width: 100%;
	margin-top: 5px;
	background-color: #FFF;
	display: block;
	opacity: .3;
	transition: all .3s cubic-bezier(.05,.03,.35,1);
}
h4 a:hover {
  color: rgba(255,255,255,1);
}
h4 a:hover:after {
  margin-top: 10px;
}
hr {
  border: 0px;
  height: 1px;
  background-color: rgba(255,255,255,.2);
  width: 80%;
  margin-left: 50px;
}
h1:hover {
  transform: scale(1.2);
  opacity: .5;
}
img {
  width: 300px;
  position: absolute;
  opacity: .2;
  visibility: hidden;
  display: block;
  transform: scale(0);
  transition: all .15s cubic-bezier(.05,.03,.35,1);
}
/* Show and scale up on hover */
.ishover {
  visibility: visible!important;
  transform: scale(1);
}
              
            
!

JS

              
                // Show & hide the images
$("h1").hover(function(){
  $(this).parent().find("img").addClass("ishover");
  }, function() {
  $(this).parent().find("img").removeClass("ishover");
  });
// Parallax effect
$("h1").mousemove(function(e){
  // Get the Y offset from the first product
  var offset = $(this).offset().top-$(":first-child", $(".item")).offset().top;
  // Calculate the new position
  var movex = (e.pageX * -1.73 / 6);
  var movey = ((e.pageY-offset) * -1.73 / 6);
  // Apply the margins
  $(this).parent().find("img").css('margin-left', movex + 'px')/2;
  $(this).parent().find("img").css('margin-top', movey + 'px');
});
              
            
!
999px

Console