Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
  <head>
    <meta name="description" content="basic polymer jsbin">
    <meta charset="utf-8">
    <base href="//polygit.org/components/">
    <script src="webcomponentsjs/webcomponents-lite.js"></script>
    <link rel="import" href="polymer/polymer.html">
    
    <link rel="import" href="iron-image/iron-image.html">
    <dom-module id="test-app">
      <template>
        <style>
          .image-overlay {
            position: relative;
            display: inline-block;
            overflow: hidden;
          }
          .image-overlay > iron-image {
            display: block;
          }
          .image-overlay > .overlay {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            overflow: auto;
          }
        </style>
        <div class="image-overlay">
          <iron-image src="https://www.polymer-project.org/1.0/images/polymer1.0-01.svg"></iron-image>
          <div class="overlay">
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
            This text overlaps the image.
          </div>
        </div>
      </template>
      <script>
        HTMLImports.whenReady(function() {
          Polymer({
            is: 'test-app'
          });
        });
      </script>
    </dom-module>
  </head>
  <body>
    <test-app></test-app>
  </body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
bicknellrpro
0viewers