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. 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

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

              
                <base href="https://raw-dot-custom-elements.appspot.com/watsonlogic-software/watsonlogic-parallax/v0.0.6/watsonlogic-parallax/">
<script src="../webcomponentsjs/webcomponents-lite.js"></script>

<link rel="import" href="../iron-demo-helpers/demo-pages-shared-styles.html">
<link rel="import" href="../iron-demo-helpers/demo-snippet.html">
<link rel="import" href="watsonlogic-parallax.html">

<custom-style>
  <style is="custom-style" include="demo-pages-shared-styles">
    .vertical-section-container {
      max-height: 300px;
      font-weight: 300;
      font-size: 1.3em;
    }
    h2 {
      font-weight: 100;
    }
    watsonlogic-parallax {
      color: white;
      margin-left: -20px;
      margin-right: -20px;
    }
    blockquote footer {
      text-align: right;
    }
  </style>
</custom-style>

<div class="vertical-section-container centered">
  <h3>Basic watsonlogic-parallax demo</h3>
  <demo-snippet>
    <template>
          <h2>Welcome to WatsonLogic Parallax</h2>

          <p>We deliberately placed more content in the demo so that you will scroll to view the parallax effect</p>
          <watsonlogic-parallax
            parallax-image-height="200"
            parallax-text="You can pass text content into the <watsonlogic-parallax> component."
            parallax-image="http://gratisography.com/pictures/390_1.jpg">
          </watsonlogic-parallax>
          <blockquote>
            Smile in the mirror. Do that every morning and you'll start to see
            a big difference in your life.
            <footer>&mdash; Yoko Ono</footer>
          </blockquote>

          <watsonlogic-parallax
            parallax-image-height="300"
            parallax-text="You can pass text content into the <watsonlogic-parallax> component."
            parallax-image="http://gratisography.com/pictures/417_1.jpg">
          </watsonlogic-parallax>
          <blockquote>
            Learn to enjoy every minute of your life. Be happy now. Don't wait
            for something outside of yourself to make you happy in the future.
            Think how really previous is the time you have to spend, whether
            it's at work or with your family. Every minute should be enjoyed and
            savored.
            <footer>&mdash; Earl Nightingale</footer>
          </blockquote>

          <watsonlogic-parallax
            parallax-image-height="300"
            parallax-image="http://gratisography.com/pictures/398_1.jpg">
          </watsonlogic-parallax>
          <blockquote>
            My mission in life is not merely to survive, but to thrive; and to
            do so with some passion, some compassion, some humor, and some
            style.
            <footer>&mdash; Maya Angelou</footer>
          </blockquote>
        </template>
  </demo-snippet>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console