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

              
                <html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-Language" content="en-us" />
  <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
  <meta name="generator" content="HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" charset="UTF-8" />
  <meta name="description" content="" />
  <meta name="keywords" content="Image comparison" />

  <title>IMAGE COMPARATAR</title>

  <script type="text/javascript">
    var backImage, frontImage;
    var maxWide, maxTall;

    function initialize() {
      backImage = 'image1.jpg';
      frontImage = 'image2.jpg';
      maxWide = 1024;
      maxTall = 720;
    }
    /*
  	function () {
  	var config = "";
      <div class="image-slider">
      	<div>
      		<img src="image1.jpg" />
     		</div>
     		<img src="image2.jpg" />
     	</div>
    }
   	*/
  </script>


</head>

<body>
  <table style="width: 950px; border: 2px solid rgb(255, 17, 17); padding: 0;  border-collapse: collapse;">
    <tr>
      <td>
        <center>
          <img src="https://dl.dropboxusercontent.com/u/102393544/ImageComparatar/ic.gif" alt="IC" style="width: 50px; height: 500px;">
          <br>&nbsp;&nbsp;&nbsp;
          <br>V0.08<br>23 Mar<br>2016<br>
        </center>
      </td>
      <td style="border: 2px solid rgb(255, 17, 17); padding: 0;  border-collapse: collapse;">
        <div class='image1'>
          <div class='image2'>
            <textarea readonly cols='0' rows='0' class='image1-2'></textarea>
          </div>
        </div>
      </td>
    </tr>
    <tr>
      <td style="background: rgb(255, 17, 17); color: black; vertical-align: middle;">
        <center>
          <b>REC
		  <br>&copy;
		  <br>2016</b>
        </center>
      </td>
      <td style="width: 800px">
        &nbsp;&nbsp;&nbsp;<b>IMAGE DETAILS:</b>&nbsp;&nbsp;&nbsp;1 - Normal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2 - Pixel Shift Resolution(PSR)&nbsp;&nbsp;&nbsp;
        <p style="margin: 0; padding: 0 20px">Comparison of imaging sensor noise using the center 900px X 600px portion from the Normal and PSR Mode PENTAX K3-II images. Both images were taken with same parameters especially: <u>lens cap on</u>, ISO 51200 and manual focus.</p>
      </td>
    </tr>
  </table>

  <script type="text/javascript">
  </script>
  </br>
</body>

</html>
              
            
!

CSS

              
                body {
  background: rgb(17, 17, 17);
  color: rgb(255, 17, 17);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 75%;
}

.image1 {
  background-image: url(https://dl.dropboxusercontent.com/u/102393544/ImageComparatar/image1.jpg );
  width: 900px;
  height: 600px;
  /* -webkit-filter: brightness(250%); */
  padding: 0;
  margin: 1px;
  position: relative;
  overflow: hidden;
}

.image2 {
  background-image: url(https://dl.dropboxusercontent.com/u/102393544/ImageComparatar/image2.jpg );
  height: 600px;
  resize: horizontal;
  position: absolute;
  top: 0;
  left: 0;
  min-width: 0;
  max-width: 900px;
}

.image2:before {
  content: url(https://dl.dropboxusercontent.com/u/102393544/ImageComparatar/lr.gif );
  background: rgba( 0, 0, 0, 0.0005);
  top: 0;
  right: -19px;
  height: 600px;
  line-height: 600px;
  position: absolute;
}

.image1-2 {
  resize: horizontal;
  opacity: 0;
  position: relative;
  top: 600px;
  left: 0;
  right: -19px;
  margin-right: 0;
  width: 37px;
  height: 600px;
  max-width: 900px;
  min-width: 1px;
  outline: 0 solid transparent;
  cursor: move;
  cursor: all-scroll;
  transform: scaley(35);
  transform-origin: center center;
  animation: delta 6s 1 normal ease-in-out 1s;
}

@keyframes delta {
  0% {
    width: 0;
  }
  25% {
    width: 900px;
  }
  50% {
    width: 450px;
  }
  75% {
    width: 450px;
  }
  100% {
    width: 0;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console